Ruby Forum Ruby-core > [Bug #446] [PATCH] [DOC] Net::HTTPHeaders#fetch does not return nil but raises IndexError

Posted by Arthur Schreiber (Guest)
on 15.08.2008 14:48
(Received via mailing list)
Bug #446: [PATCH] [DOC] Net::HTTPHeaders#fetch does not return nil but 
raises IndexError
http://redmine.ruby-lang.org/issues/show/446

Author: Arthur Schreiber
Status: Open, Priority: Normal

As Hash#fetch, Net::HTTPHeaders#fetch does raise an IndexError when 
neither a default
value nor a block was passed and the requested key can not be found.

The attached patch updates the documentation for Net::HTTPHeaders#fetch 
to reflect this.