Set request and response content type to json.
This commit is contained in:
@@ -40,6 +40,7 @@ def returns_json(handler):
|
||||
|
||||
@functools.wraps(handler)
|
||||
def SerializeResult(self):
|
||||
self.response.headers['Content-Type'] = 'application/json'
|
||||
json.dump(handler(self), self.response.out, default=EncodeJSON)
|
||||
|
||||
return SerializeResult
|
||||
|
||||
Reference in New Issue
Block a user