Cleanup headers and encoding.

This commit is contained in:
Steve Pulec 2017-02-16 22:51:04 -05:00
commit cad185c74d
19 changed files with 138 additions and 101 deletions

View file

@ -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):