diff options
Diffstat (limited to 'lib')
-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 |