diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-31 13:05:39 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-31 13:05:39 +0000 |
commit | eb12792cdb918cfaefae43a17d8902823aa342bd (patch) | |
tree | aa71fba052f87c818aaaf75023e6d25c35c4e279 /lib | |
parent | 751e32b705c87796ab2e609216687ae5e96cc2d6 (diff) | |
download | ruby-eb12792cdb918cfaefae43a17d8902823aa342bd.tar.gz ruby-eb12792cdb918cfaefae43a17d8902823aa342bd.tar.xz ruby-eb12792cdb918cfaefae43a17d8902823aa342bd.zip |
merges r24840 and r24841 from trunk into ruby_1_9_1.
--
* lib/net/http.rb (Net::HTTPHeader::encode_kvpair): also call to_s
to k. A patch from swdyh <youhei@gmail.com>
http://github.com/swdyh/ruby/tree/c847f43c2ccb679b9ff728f8b1b16c6ceeb57f39
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25598 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 d2a97de8d..8fb08870e 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1522,7 +1522,7 @@ module Net #:nodoc: alias form_data= set_form_data def encode_kvpair(k, vs) - Array(vs).map {|v| "#{urlencode(k)}=#{urlencode(v.to_s)}" } + Array(vs).map {|v| "#{urlencode(k.to_s)}=#{urlencode(v.to_s)}" } end private :encode_kvpair |