diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-29 10:04:33 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-29 10:04:33 +0000 |
commit | 7604ca41ff70617a605a7aabb09b128ae47ae22d (patch) | |
tree | ec4b84b39a965fac0925a15fac0c0b2afa4ef9e6 /lib | |
parent | 1a3e7ca11f3dd7d78a2f24d35260f8cfd50f3cc0 (diff) | |
download | ruby-7604ca41ff70617a605a7aabb09b128ae47ae22d.tar.gz |
fix previous commit for nil case
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http/response.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb index 219e14e777..674faf2cfc 100644 --- a/lib/net/http/response.rb +++ b/lib/net/http/response.rb @@ -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' |