bugfix
This commit is contained in:
parent
6b174dbf95
commit
eb7cd35d6d
@ -104,6 +104,7 @@ class BaseProcessor(AppLogger):
|
|||||||
jsonflg = True
|
jsonflg = True
|
||||||
elif type(self.content) == type(b''):
|
elif type(self.content) == type(b''):
|
||||||
self.headers['Access-Control-Expose-Headers'] = 'Set-Cookie'
|
self.headers['Access-Control-Expose-Headers'] = 'Set-Cookie'
|
||||||
|
self.headers['Content-Length'] = str(len(self.content))
|
||||||
resp = Response(body=self.content,headers=self.headers)
|
resp = Response(body=self.content,headers=self.headers)
|
||||||
self.set_response_headers(resp)
|
self.set_response_headers(resp)
|
||||||
return resp
|
return resp
|
||||||
|
Loading…
Reference in New Issue
Block a user