Scrapy, a fast high-level web crawling & scraping framework for Python.
Fix a merge error.
Andrey Rakhmatullin706eb8d4275b
diff --git a/scrapy/downloadermiddlewares/httpcompression.py b/scrapy/downloadermiddlewares/httpcompression.pyindex aebdfb3e4..2352be0fe 100644--- a/scrapy/downloadermiddlewares/httpcompression.py+++ b/scrapy/downloadermiddlewares/httpcompression.py@@ -135,7 +135,7 @@ class HttpCompressionMiddleware:respcls = responsetypes.from_args(headers=response.headers, url=response.url, body=decoded_body)- kwargs: Dict[str, Any] = {"cls": respcls, "body": decoded_body}+ kwargs: Dict[str, Any] = {"body": decoded_body}if issubclass(respcls, TextResponse):# force recalculating the encoding until we make sure the# responsetypes guessing is reliable