Project

General

Profile

Bug #445 ยป net_httpheader_fetch.patch

NoKarma (Arthur Schreiber), 08/15/2008 09:42 PM

View differences:

lib/net/http.rb (Arbeitskopie)
# 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(', ')
a.kind_of?(Array) ? a.join(', ') : a
end
# Iterates for each header names and values.
    (1-1/1)