summaryrefslogtreecommitdiffstats
path: root/lib/net
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
commit0b400e224cb1e7b235d79623d0255b4b3641e87f (patch)
tree79c8a6119365e27e1e02d8f88c8d94c9105ae008 /lib/net
parent23ac4daa04c860db436d8b4fa7074d7173e43d15 (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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-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 8fb08870e..efc47c000 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.