title: zlib.error: Error -3 while decompressing: incorrect header check
body: <p>I have a gzip file and I am trying to read it via Python as below:</p>
  
  <pre><code>import zlib
  
  do = zlib.decompressobj(16+zlib.MAX_WBITS)
  fh = open('abc.gz', 'rb')
  cdata = fh.read()
  fh.close()
  data = do.decompress(cdata)
  </code></pre>
  
  <p>it throws this error:</p>
  
  <pre><code>zlib.error: Error -3 while decompressing: incorrect header check
  </code></pre>
  
  <p>How can I overcome it?</p>