# File lib/puppet/network/http/compression.rb, line 68 68: def uncompress(chunk) 69: out = @uncompressor.inflate(chunk) 70: @first = false 71: return out 72: rescue Zlib::DataError => z 73: # it can happen that we receive a raw deflate stream 74: # which might make our inflate throw a data error. 75: # in this case, we try with a verbatim (no header) 76: # deflater. 77: @uncompressor = Zlib::Inflate.new 78: retry if @first 79: raise 80: end