Renamed duplicate body variable.

This commit is contained in:
Christian
2015-11-03 00:04:46 +01:00
parent 6011ad3d2e
commit 5440694243

View File

@@ -55,14 +55,14 @@ HttpAccessory.prototype = {
this.log("Setting power state to off");
}
this.httpRequest(url, body, this.http_method, this.username, this.password, function(error, response, body) {
this.httpRequest(url, body, this.http_method, this.username, this.password, function(error, response, responseBody) {
if (error) {
this.log('HTTP power function failed: %s', error.message);
callback(error);
} else {
this.log('HTTP power function succeeded!');
this.log(response);
this.log(body);
this.log(responseBody);
this.log(this.username);
this.log(this.password);
callback();