This commit is contained in:
yumoqing 2024-02-20 18:06:16 +08:00
parent 6b174dbf95
commit eb7cd35d6d

View File

@ -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