diff options
Diffstat (limited to 'lib')
-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| |