diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-21 17:44:44 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-21 17:44:44 +0000 |
commit | 800c313bde129b5e54d41abd478e1be6dab63016 (patch) | |
tree | abaf528c804a97592ef88c12bbfe8bb3860c8e26 /lib/net/http.rb | |
parent | 7d112260586c99168bc51df274784bcc01db6692 (diff) |
* lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of
the given URI to post. See #655.
* test/net/http/test_http.rb, test/net/http/utils.rb: Test it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 045967caa3..f89858836f 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -475,7 +475,7 @@ module Net #:nodoc: # { "q" => "ruby", "max" => "50" } # def HTTP.post_form(url, params) - req = Post.new(url.path) + req = Post.new(url.request_uri) req.form_data = params req.basic_auth url.user, url.password if url.user new(url.hostname, url.port).start {|http| |