Commit b97abd6e authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Renamed parameter to avoid confusion between GET and POST parameters.

parent 28452fe8
......@@ -24,8 +24,8 @@ class RESTConnection(object):
'Content-type': 'application/json',
}
def send_request(self, resource, parameters, on_success, on_failure, on_error):
def send_request(self, resource, post_parameters, on_success, on_failure, on_error):
url = RESTConnection._construct_url(self.authority, self.port, resource)
parameters = json.dumps(parameters) if parameters is not None else None
UrlRequest(url, req_headers=self.headers, req_body=parameters,
post_parameters = json.dumps(post_parameters) if post_parameters is not None else None
UrlRequest(url, req_headers=self.headers, req_body=post_parameters,
on_success=on_success, on_failure=on_failure, on_error=on_error)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment