1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber, [ruby-core:18309].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2009-09-10 16:28:52 +00:00
parent 3a224dbf45
commit 8cdbe2ab6f
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fri Sep 11 01:14:00 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber.
[ruby-core:18309].
Thu Sep 10 23:00:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (create_makefile): fix for parallel execution.

View file

@ -1292,8 +1292,9 @@ module Net #:nodoc:
end
# Returns the header field corresponding to the case-insensitive key.
# Returns the default value +args+, or the result of the block, or nil,
# if there's no header field named key. See Hash#fetch
# Returns the default value +args+, or the result of the block, or
# raises an IndexErrror 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(', ')