bugfix
This commit is contained in:
parent
583c2a724d
commit
ccfe0eeb82
@ -82,7 +82,7 @@ class BaseProcessor(AppLogger):
|
|||||||
async def handle(self,request):
|
async def handle(self,request):
|
||||||
await self.execute(request)
|
await self.execute(request)
|
||||||
if self.retResponse is not None:
|
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
|
return self.retResponse
|
||||||
elif type(self.content) == type({}) :
|
elif type(self.content) == type({}) :
|
||||||
self.content = json.dumps(self.content,
|
self.content = json.dumps(self.content,
|
||||||
@ -92,7 +92,7 @@ class BaseProcessor(AppLogger):
|
|||||||
indent=4)
|
indent=4)
|
||||||
|
|
||||||
self.headers['Content-Type'] = "application/json; utf-8"
|
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)
|
return Response(text=self.content,headers=self.headers)
|
||||||
|
|
||||||
async def datahandle(self,request):
|
async def datahandle(self,request):
|
||||||
|
Loading…
Reference in New Issue
Block a user