Skip to content

Commit

Permalink
* lib/net/http.rb (fetch): Handle properly default values; a patch by…
Browse files Browse the repository at this point in the history
… Arthur Schreiber [ruby-core:18308]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
marcandre committed Sep 13, 2009
1 parent 8ef3af6 commit a0c569a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Sep 14 05:21:12 2009 Marc-Andre Lafortune <[email protected]>

* lib/net/http.rb (fetch): Handle properly default values; a patch by
Arthur Schreiber [ruby-core:18308]

Mon Sep 14 04:07:09 2009 Marc-Andre Lafortune <[email protected]>

* lib/set.rb (==): Optimization; patch by Arthur Schreiber [ruby-core:17203]
Expand Down
2 changes: 1 addition & 1 deletion lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ def get_fields(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.
Expand Down

0 comments on commit a0c569a

Please sign in to comment.