Fix a merge error.

This commit is contained in:
Andrey Rakhmatullin 2024-02-29 14:33:55 +05:00
parent b6587575a1
commit 706eb8d427
1 changed files with 1 additions and 1 deletions

View File

@ -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