diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-29 07:14:31 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-29 07:14:31 +0000 |
commit | 9943fa7cc54bbc7a326334380a1f17ec47eb1df2 (patch) | |
tree | 71768a2745b4ad8ab360d107b1d2e8ec32d9f806 /lib | |
parent | bff1dc20612d3aaaf06ed6e5148d0cac9b355a11 (diff) | |
download | ruby-9943fa7cc54bbc7a326334380a1f17ec47eb1df2.tar.gz |
* lib/net/http/response.rb (inflater): CONTENT_ENCODING can be upper
case. [ruby-core:69670] [Bug #11285] patched by Andy Chu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb index b0731694ca..219e14e777 100644 --- a/lib/net/http/response.rb +++ b/lib/net/http/response.rb @@ -250,7 +250,7 @@ class Net::HTTPResponse return yield @socket unless @decode_content return yield @socket if self['content-range'] - case self['content-encoding'] + case self['content-encoding'].downcase when 'deflate', 'gzip', 'x-gzip' then self.delete 'content-encoding' |