bugfix
This commit is contained in:
parent
9ad801e8fe
commit
6b174dbf95
@ -102,6 +102,11 @@ class BaseProcessor(AppLogger):
|
||||
elif type(self.content) == type([]):
|
||||
self.content = json.dumps(self.content, indent=4)
|
||||
jsonflg = True
|
||||
elif type(self.content) == type(b''):
|
||||
self.headers['Access-Control-Expose-Headers'] = 'Set-Cookie'
|
||||
resp = Response(body=self.content,headers=self.headers)
|
||||
self.set_response_headers(resp)
|
||||
return resp
|
||||
else:
|
||||
try:
|
||||
json.loads(self.content)
|
||||
|
Loading…
Reference in New Issue
Block a user