title: Error -3 while decompressing data: incorrect header check - urllib2
body: <p>I am checking for url status with this code: </p>
  
  <pre><code>h = httplib2.Http()
  hdr = {'User-Agent': 'Mozilla/5.0'}
  resp = h.request("http://" + url, headers=hdr)
  if int(resp[0]['status']) &lt; 400:
      return 'ok'
  else:
      return 'bad'
  </code></pre>
  
  <p>and getting</p>
  
  <pre><code>Error -3 while decompressing data: incorrect header check
  </code></pre>
  
  <p>the url i am checking is: </p>
  
  <p><a href="http://www.sueddeutsche.de/wirtschaft/deutschlands-innovationsangst-wir-neobiedermeier-1.2117528" rel="nofollow">http://www.sueddeutsche.de/wirtschaft/deutschlands-innovationsangst-wir-neobiedermeier-1.2117528</a></p>
  
  <p>the Exception Location is: </p>
  
  <pre><code>Exception Location: C:\Python27\lib\site-packages\httplib2-0.9-py2.7.egg\httplib2\__init__.py in _decompressContent, line 403
  
  try:
      encoding = response.get('content-encoding', None)
      if encoding in ['gzip', 'deflate']:
          if encoding == 'gzip':
              content = gzip.GzipFile(fileobj=StringIO.StringIO(new_content)).read()
          if encoding == 'deflate':
              content = zlib.decompress(content) ##&lt;---- error line
          response['content-length'] = str(len(content))
          # Record the historical presence of the encoding in a way the won't interfere.
          response['-content-encoding'] = response['content-encoding']
          del response['content-encoding']
  except IOError:
      content = ""
  </code></pre>
  
  <p>http status is 200 which is <code>ok</code> for my case, but i am getting this error</p>
  
  <p>I actually need only http status, why is it reading the whole content? </p>