From fc816b831c84bf73879cd4a814d887eb47bde90b Mon Sep 17 00:00:00 2001 From: Brad Gessler Date: Mon, 3 Mar 2014 01:21:13 -0800 Subject: [PATCH] Initialize HTTParty requests with an URI object and a String. --- lib/httparty/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/httparty/request.rb b/lib/httparty/request.rb index 065acd4..0513e4d 100644 --- a/lib/httparty/request.rb +++ b/lib/httparty/request.rb @@ -43,7 +43,7 @@ module HTTParty end def path=(uri) - @path = URI.parse(uri) + @path = URI(uri) end def request_uri(uri)