lib/em-http/request.rb in em-http-request-0.2.14 vs lib/em-http/request.rb in em-http-request-0.2.15
- old
+ new
@@ -25,10 +25,10 @@
class HttpRequest
attr_reader :options, :method
def initialize(host)
- @uri = host.kind_of?(Addressable::URI) ? host : Addressable::URI::parse(host)
+ @uri = host.kind_of?(Addressable::URI) ? host : Addressable::URI::parse(host.to_s)
end
# Send an HTTP request and consume the response. Supported options:
#
# head: {Key: Value}
\ No newline at end of file