def response_hook(self, response, **kwargs) -> HTMLResponse:
if not response.encoding:<EOL><INDENT>response.encoding = DEFAULT_ENCODING<EOL><DEDENT>return HTMLResponse._from_response(response, self)<EOL>
Change response enconding and replace it by a HTMLResponse.