# File lib/puppet/network/http/compression.rb, line 18
18:     def uncompress_body(response)
19:       case response['content-encoding']
20:       when 'gzip'
21:         return Zlib::GzipReader.new(StringIO.new(response.body)).read
22:       when 'deflate'
23:         return Zlib::Inflate.new.inflate(response.body)
24:       when nil, 'identity'
25:         return response.body
26:       else
27:         raise Net::HTTPError.new("Unknown content encoding - #{response['content-encoding']}", response)
28:       end
29:     end