bugfix
This commit is contained in:
parent
2596ea0aa3
commit
be1334e226
@ -29,12 +29,14 @@ class ProxyProcessor(BaseProcessor):
|
|||||||
allow_redirects=False,
|
allow_redirects=False,
|
||||||
data=await request.read()) as res:
|
data=await request.read()) as res:
|
||||||
headers = res.headers.copy()
|
headers = res.headers.copy()
|
||||||
body = await res.read()
|
# body = await res.read()
|
||||||
self.retResponse = web.Response(
|
self.retResponse = web.Response(
|
||||||
headers = headers,
|
headers = headers,
|
||||||
status = res.status,
|
status = res.status
|
||||||
body = body
|
# , body=body
|
||||||
)
|
)
|
||||||
|
async for chunk in res.content.iter_chunked(chunk_size):
|
||||||
|
await self.retResponse.write(chunk)
|
||||||
print('proxy: datahandle() finish', self.retResponse)
|
print('proxy: datahandle() finish', self.retResponse)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user