diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-01 08:45:50 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-01 08:45:50 +0000 |
commit | 94402f983fbfacaf989c9f5d5d97fa5b4b6d1934 (patch) | |
tree | 3ebce2e64a3ebc80fb64f4b83e05169f6606f304 /lib/net | |
parent | 6a95ae2a79f26d8efbfa4d9340fde6c10241606d (diff) | |
download | ruby-94402f983fbfacaf989c9f5d5d97fa5b4b6d1934.tar.gz |
* lib/net/http.rb (each_capitalized): should join header field value. This patch is contributed sheepman [ruby-list:40478]
* test/net/http/test_httpheader.rb: test it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-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 dc6256f110..f7bf37c020 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1138,7 +1138,7 @@ module Net # :nodoc: # As for #each_header, except the keys are provided in capitalized form. def each_capitalized @header.each do |k,v| - yield capitalize(k), v + yield capitalize(k), v.join(', ') end end |