From ccfe0eeb82ab58bcdeb8f00740189618dc393212 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 8 Jun 2023 10:37:54 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index e684a96..c84a48e 100755 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -82,7 +82,7 @@ class BaseProcessor(AppLogger): async def handle(self,request): await self.execute(request) if self.retResponse is not None: - self.retResponse.headers['Access-Control-Expose-Headers'] = 'Set-Cokkie' + self.retResponse.headers['Access-Control-Expose-Headers'] = 'Set-Cookie' return self.retResponse elif type(self.content) == type({}) : self.content = json.dumps(self.content, @@ -92,7 +92,7 @@ class BaseProcessor(AppLogger): indent=4) self.headers['Content-Type'] = "application/json; utf-8" - self.headers['Access-Control-Expose-Headers'] = 'Set-Cokkie' + self.headers['Access-Control-Expose-Headers'] = 'Set-Cookie' return Response(text=self.content,headers=self.headers) async def datahandle(self,request):