From eb12792cdb918cfaefae43a17d8902823aa342bd Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 31 Oct 2009 13:05:39 +0000 Subject: 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 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 --- 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 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 -- cgit