mirror of https://github.com/scrapy/scrapy.git
HttpCompressionMiddleware: clarify internal comment
This commit is contained in:
parent
4759c68193
commit
7ef061fc17
|
|
@ -70,8 +70,8 @@ class HttpCompressionMiddleware:
|
|||
)
|
||||
kwargs = dict(cls=respcls, body=decoded_body)
|
||||
if issubclass(respcls, TextResponse):
|
||||
# force recalculating the encoding until we make sure the
|
||||
# responsetypes guessing is reliable
|
||||
# Force recalculating the encoding based on the new,
|
||||
# decoded (uncompressed) body.
|
||||
kwargs['encoding'] = None
|
||||
response = response.replace(**kwargs)
|
||||
if not content_encoding:
|
||||
|
|
|
|||
Loading…
Reference in New Issue