Fix tests for server mode.
This commit is contained in:
parent
91a75570c6
commit
b0ea9f2859
2 changed files with 10 additions and 4 deletions
|
|
@ -10,7 +10,11 @@ class DataPipelineResponse(BaseResponse):
|
|||
|
||||
@property
|
||||
def parameters(self):
|
||||
return json.loads(self.body.decode("utf-8"))
|
||||
# TODO this should really be moved to core/responses.py
|
||||
if self.body:
|
||||
return json.loads(self.body.decode("utf-8"))
|
||||
else:
|
||||
return self.querystring
|
||||
|
||||
@property
|
||||
def datapipeline_backend(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue