Project

General

Profile

Actions

Bug #447

closed

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

Added by NoKarma (Arthur Schreiber) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-core:18310]

Description

=begin
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.
=end


Files

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

Also available in: Atom PDF

Like0
Like0Like0