summaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-08 12:40:34 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-08 12:40:34 +0000
commit137b385ba62837e770a6968446b8d7c2851b991b (patch)
tree9ce7de1b66ec00b1aecb77fbbb740bae013de9b1 /lib/net
parent87942212a6c3ea591fe1b84e59074d6d8176bf6d (diff)
downloadruby-137b385ba62837e770a6968446b8d7c2851b991b.tar.gz
ruby-137b385ba62837e770a6968446b8d7c2851b991b.tar.xz
ruby-137b385ba62837e770a6968446b8d7c2851b991b.zip
* lib/net/http.rb (add_header): remove warning. [ruby-dev:23170]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5927 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 9b3ee5960..7cd0acd65 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1045,7 +1045,7 @@ module Net # :nodoc:
# p request.get_fields('X-My-Header') #=> ["a", "b", "c"]
#
def add_header(key, val)
- if header.key?(key.downcase)
+ if @header.key?(key.downcase)
@header[key.downcase].concat Array(val)
else
@header[key.downcase] = Array(val).dup