Bug #447

[PATCH] Net::HTTPHeaders iterator methods should return Enumerators

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

Assignee:Minero Aoki
ruby -v: Backport:


Net::HTTPHeader#canonical_each, Net::HTTPHeader#each_capitalized_name,
Net::HTTPHeader#each_capitalized, Net::HTTPHeader#each_header,
Net::HTTPHeader#each and Net::HTTPHeader#each_value should return Enumerable::Enumerator
instances instead of raising a LocalJumpError when being called without a block.

The attached patch adds this functionality.

net_httpheader_iterators.patch Magnifier (1.48 KB) Arthur Schreiber, 08/15/2008 09:57 PM


#1 Updated by Shyouhei Urabe almost 7 years ago

  • Assignee set to Minero Aoki



#2 Updated by Marc-Andre Lafortune about 6 years ago

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

Applied in changeset r24915.

Also available in: Atom PDF