mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
7a9f701692
commit
5728783a04
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue