utils.http.request_many() shouldn't decode data for Response
This commit is contained in:
parent
252e540f00
commit
c898bc4be1
1 changed files with 2 additions and 3 deletions
|
@ -232,9 +232,8 @@ def request_many(requests: typing.List[Request]) -> typing.Dict[str, Response]:
|
|||
"request_many failed for %s" % url)
|
||||
|
||||
headers = utils.CaseInsensitiveDict(dict(response.headers))
|
||||
data = response.body.decode("utf8")
|
||||
responses[request.id] = Response(response.code, data, "utf8", headers,
|
||||
{})
|
||||
responses[request.id] = Response(response.code, response.body, "utf8",
|
||||
headers, {})
|
||||
|
||||
loop = asyncio.new_event_loop()
|
||||
awaits = []
|
||||
|
|
Loading…
Reference in a new issue