scrapy/scrapy — pull request #181 by artem-dev (2012-10-10 09:28:37+00:00)
Title: httpcompression middleware improvement

HttpCompression middleware often fails if a page size is smaller than current buffer in use (8196 bytes)
In this case output contains an empty string and extrabuf contains the whole decompressed body. The change improves current behaviour and also checks if extrabuf isn't empty.