master
yumoqing 2024-02-20 18:06:16 +08:00
parent 6b174dbf95
commit eb7cd35d6d
1 changed files with 1 additions and 0 deletions

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