mirror of https://github.com/scrapy/scrapy.git
Fix a merge error.
This commit is contained in:
parent
b6587575a1
commit
706eb8d427
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue