1
0
Fork 0
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:
naruse 2015-06-29 10:04:33 +00:00
parent 1a3e7ca11f
commit 7604ca41ff

View file

@ -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'