• Jeffrey Lee's avatar
    Fix gzgetheader() · be0547a5
    Jeffrey Lee authored
    Detail:
      c/gzread - In order for gzgetheader() to work, gz_head() needs to create the stream with a positive windowBits value with bit 4 set, in order to enable zlib's gzip header parsing code.
      Once the header is parsed the stream is switched back to raw mode, to allow the gzip code to handle the gzip footer.
      Also made gzgetheader() report errors instead of always returning 0.
    Admin:
      Tested with reading gzip files using ZLib module
    
    
    Version 1.20. Tagged as 'zlib-1_20'
    be0547a5
gzread 22.7 KB