Merge branch 'new-request-dispatching' into blueprints
This commit is contained in:
commit
673fa18e6d
28 changed files with 689 additions and 266 deletions
|
|
@ -81,7 +81,13 @@ class Request(RequestBase):
|
|||
if __debug__:
|
||||
_assert_have_json()
|
||||
if self.mimetype == 'application/json':
|
||||
return json.loads(self.data)
|
||||
request_charset = self.mimetype_params.get('charset')
|
||||
if request_charset is not None:
|
||||
j = json.loads(self.data, encoding=request_charset )
|
||||
else:
|
||||
j = json.loads(self.data)
|
||||
|
||||
return j
|
||||
|
||||
|
||||
class Response(ResponseBase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue