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

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