From eb7cd35d6dbdf2f062ba74d8daf0a790616d0ec6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 20 Feb 2024 18:06:16 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index c86b57d..c2628a7 100755 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -104,6 +104,7 @@ class BaseProcessor(AppLogger): jsonflg = True elif type(self.content) == type(b''): self.headers['Access-Control-Expose-Headers'] = 'Set-Cookie' + self.headers['Content-Length'] = str(len(self.content)) resp = Response(body=self.content,headers=self.headers) self.set_response_headers(resp) return resp