Cleanup headers and encoding.
This commit is contained in:
parent
468a1b970c
commit
cad185c74d
19 changed files with 138 additions and 101 deletions
|
|
@ -16,7 +16,7 @@ class SWFResponse(BaseResponse):
|
|||
# SWF parameters are passed through a JSON body, so let's ease retrieval
|
||||
@property
|
||||
def _params(self):
|
||||
return json.loads(self.body.decode("utf-8"))
|
||||
return json.loads(self.body)
|
||||
|
||||
def _check_int(self, parameter):
|
||||
if not isinstance(parameter, int):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue