diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-07 10:33:16 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-07 10:33:16 +0000 |
commit | 5728783a0458357105c1943a4b0a9e04c1879a04 (patch) | |
tree | 1cde5a0c3ce45f1b6cbe28a9403bee826d878fea /lib/net/http | |
parent | 7a9f7016927af060a66e14aeb26a1ac198f3ceaa (diff) | |
download | ruby-5728783a0458357105c1943a4b0a9e04c1879a04.tar.gz |
* 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
Diffstat (limited to 'lib/net/http')
-rw-r--r-- | lib/net/http/header.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |