# File lib/puppet/network/http/compression.rb, line 56 56: def initialize 57: # Create an inflater that knows to parse GZip streams and zlib streams. 58: # This uses a property of the C Zlib library, documented as follow: 59: # windowBits can also be greater than 15 for optional gzip decoding. Add 60: # 32 to windowBits to enable zlib and gzip decoding with automatic header 61: # detection, or add 16 to decode only the gzip format (the zlib format will 62: # return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is 63: # a crc32 instead of an adler32. 64: @uncompressor = Zlib::Inflate.new(15 + 32) 65: @first = true 66: end