aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http.rb')
-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 017a711ee6..dff0d238dd 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1297,7 +1297,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.