mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix previous commit for nil case
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1a3e7ca11f
commit
7604ca41ff
1 changed files with 2 additions and 1 deletions
|
@ -250,7 +250,8 @@ class Net::HTTPResponse
|
|||
return yield @socket unless @decode_content
|
||||
return yield @socket if self['content-range']
|
||||
|
||||
case self['content-encoding'].downcase
|
||||
v = self['content-encoding']
|
||||
case v && v.downcase
|
||||
when 'deflate', 'gzip', 'x-gzip' then
|
||||
self.delete 'content-encoding'
|
||||
|
||||
|
|
Loading…
Reference in a new issue