Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (Revision 18645) +++ lib/net/http.rb (Arbeitskopie) @@ -1205,8 +1205,9 @@ end # Returns the header field corresponding to the case-insensitive key. - # Returns the default value +args+, or the result of the block, or nil, - # if there's no header field named key. See Hash#fetch + # Returns the default value +args+, or the result of the block, or + # raises an IndexErrror if there's no header field named +key+ + # See Hash#fetch def fetch(key, *args, &block) #:yield: +key+ a = @header.fetch(key.downcase, *args, &block) a.join(', ')