From 1fc6aaccf3ce48af021f910e67392392a77055bc Mon Sep 17 00:00:00 2001 From: aamine Date: Sat, 1 Jan 2005 08:45:50 +0000 Subject: * 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 --- 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 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 -- cgit