diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-15 16:53:55 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-15 16:53:55 +0000 |
commit | 16225d823dcf26fcdf294080c95fd6a4915a30e6 (patch) | |
tree | e74b2b7443495df0498380aa0a7e5711cb785b39 /lib | |
parent | 743ab3c78371f399e10bd36abbe5de7fff9bf71f (diff) | |
download | ruby-16225d823dcf26fcdf294080c95fd6a4915a30e6.tar.gz |
include query parameters in Net::HTTP.post
patched by Samuel Giddins <segiddins@segiddins.me>
https://github.com/ruby/ruby/pull/1686 fix GH-1686
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 d632020458..a4b919e59b 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -503,7 +503,7 @@ module Net #:nodoc: def HTTP.post(url, data, header = nil) start(url.hostname, url.port, :use_ssl => url.scheme == 'https' ) {|http| - http.post(url.path, data, header) + http.post(url, data, header) } end |