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 | 84de36c74831bb6420fcd3c224fc515380e28350 (patch) | |
tree | 71768a2745b4ad8ab360d107b1d2e8ec32d9f806 /lib/net | |
parent | 8803c6016fa211b40d63bc1a7e6ffa32ac4a75c4 (diff) | |
download | ruby-84de36c74831bb6420fcd3c224fc515380e28350.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/net')
-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' |