Bug #446

[PATCH] [DOC] Net::HTTPHeaders#fetch does not return nil but raises IndexError

Added by Arthur Schreiber about 7 years ago. Updated over 4 years ago.

Assignee:Minero Aoki
ruby -v:- Backport:


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.

net_httpheader_fetch_doc.patch Magnifier (697 Bytes) Arthur Schreiber, 08/15/2008 09:47 PM


#1 Updated by Shyouhei Urabe over 6 years ago

  • Assignee set to Minero Aoki
  • ruby -v set to -



#2 Updated by Anonymous about 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r24830.

Also available in: Atom PDF