From 800c313bde129b5e54d41abd478e1be6dab63016 Mon Sep 17 00:00:00 2001 From: nahi Date: Tue, 21 Jun 2011 17:44:44 +0000 Subject: * 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 --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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| -- cgit v1.2.3