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 | 1fc6aaccf3ce48af021f910e67392392a77055bc (patch) | |
tree | 3ebce2e64a3ebc80fb64f4b83e05169f6606f304 /lib | |
parent | 92c27297c6245f6479465ae84e200fc4f16db1c8 (diff) | |
download | ruby-1fc6aaccf3ce48af021f910e67392392a77055bc.tar.gz ruby-1fc6aaccf3ce48af021f910e67392392a77055bc.tar.xz ruby-1fc6aaccf3ce48af021f910e67392392a77055bc.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@7701 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 dc6256f11..f7bf37c02 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 |