Cleanup headers and encoding.
This commit is contained in:
parent
468a1b970c
commit
cad185c74d
19 changed files with 138 additions and 101 deletions
|
|
@ -19,7 +19,7 @@ class EventsHandler(BaseResponse):
|
|||
}
|
||||
|
||||
def load_body(self):
|
||||
decoded_body = self.body.decode('utf-8')
|
||||
decoded_body = self.body
|
||||
return json.loads(decoded_body or '{}')
|
||||
|
||||
def error(self, type_, message='', status=400):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue