diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-08 12:40:34 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-08 12:40:34 +0000 |
commit | 14371fce68acd0ce292af46d1b1ce7af9565bf3e (patch) | |
tree | 9ce7de1b66ec00b1aecb77fbbb740bae013de9b1 /lib/net | |
parent | f34d501658ede389ad13f904e844524244ff024b (diff) | |
download | ruby-14371fce68acd0ce292af46d1b1ce7af9565bf3e.tar.gz |
* lib/net/http.rb (add_header): remove warning. [ruby-dev:23170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 9b3ee5960b..7cd0acd659 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 |