From 5728783a0458357105c1943a4b0a9e04c1879a04 Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 7 Dec 2013 10:33:16 +0000 Subject: * lib/net/http/header.rb: [DOC] Net::HTTP#to_hash returns pair of key and array values. Thanks @bjhaid [fix GH-467] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http/header.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/net/http/header.rb') diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb index 029b647b5e..912419df55 100644 --- a/lib/net/http/header.rb +++ b/lib/net/http/header.rb @@ -145,11 +145,11 @@ module Net::HTTPHeader @header.key?(key.downcase) end - # Returns a Hash consisting of header names and values. + # Returns a Hash consisting of header names and array of values. # e.g. - # {"cache-control" => "private", - # "content-type" => "text/html", - # "date" => "Wed, 22 Jun 2005 22:11:50 GMT"} + # {"cache-control" => ["private"], + # "content-type" => ["text/html"], + # "date" => ["Wed, 22 Jun 2005 22:11:50 GMT"]} def to_hash @header.dup end -- cgit v1.2.3