From c3378bb10fa322ebe3da90e63c589054036671fe Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 22 Mar 2022 12:25:45 +0800 Subject: [PATCH] bugfix --- ahserver/proxyProcessor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ahserver/proxyProcessor.py b/ahserver/proxyProcessor.py index 8f1c239..21429bb 100644 --- a/ahserver/proxyProcessor.py +++ b/ahserver/proxyProcessor.py @@ -36,6 +36,7 @@ class ProxyProcessor(BaseProcessor): status = res.status # , body=body ) + await self.retResponse.prepare(request) async for chunk in res.content.iter_chunked(chunk_size): await self.retResponse.write(chunk) print('proxy: datahandle() finish', self.retResponse)