From 8ca0d30fef6b4845e29f1644d0aa44ebcbdc7d84 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 17 Sep 2019 14:11:12 +0100 Subject: Response.__init__() needs `encoding` now --- src/utils/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http.py b/src/utils/http.py index e86a0683..7f24f4ab 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -227,7 +227,7 @@ def request_many(urls: typing.List[str]) -> typing.Dict[str, Response]: headers = utils.CaseInsensitiveDict(dict(response.headers)) data = response.body.decode("utf8") - responses[url] = Response(response.code, data, headers) + responses[url] = Response(response.code, data, headers, "utf8") loop = asyncio.new_event_loop() awaits = [] -- cgit v1.3.1-10-gc9f91