summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-01 15:48:31 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-01 15:48:31 +0000
commit00cd3b97e6f315e732ce45f9fba4a31f07a9bc32 (patch)
tree79c8a6119365e27e1e02d8f88c8d94c9105ae008 /lib
parent6f1e3cc010a9a2d61dbf31c7cb6cc58cad9bdca4 (diff)
merges r24912 from trunk into ruby_1_9_1.
-- * lib/net/http.rb (fetch): Handle properly default values; a patch by Arthur Schreiber [ruby-core:18308] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 8fb08870e8..efc47c0009 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1294,7 +1294,7 @@ module Net #:nodoc:
# 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.