Cleanup for the json property
This commit is contained in:
parent
afe5d3cbd4
commit
a69b437af7
1 changed files with 2 additions and 5 deletions
|
|
@ -96,11 +96,8 @@ class Request(RequestBase):
|
||||||
if self.mimetype == 'application/json':
|
if self.mimetype == 'application/json':
|
||||||
request_charset = self.mimetype_params.get('charset')
|
request_charset = self.mimetype_params.get('charset')
|
||||||
if request_charset is not None:
|
if request_charset is not None:
|
||||||
j = json.loads(self.data, encoding=request_charset )
|
return json.loads(self.data, encoding=request_charset)
|
||||||
else:
|
return json.loads(self.data)
|
||||||
j = json.loads(self.data)
|
|
||||||
|
|
||||||
return j
|
|
||||||
|
|
||||||
|
|
||||||
class Response(ResponseBase):
|
class Response(ResponseBase):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue