Renamed duplicate body variable.

This commit is contained in:
Christian
2015-11-03 00:04:46 +01:00
parent 6011ad3d2e
commit 5440694243
+2 -2
View File
@@ -55,14 +55,14 @@ HttpAccessory.prototype = {
this.log("Setting power state to off"); 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) { if (error) {
this.log('HTTP power function failed: %s', error.message); this.log('HTTP power function failed: %s', error.message);
callback(error); callback(error);
} else { } else {
this.log('HTTP power function succeeded!'); this.log('HTTP power function succeeded!');
this.log(response); this.log(response);
this.log(body); this.log(responseBody);
this.log(this.username); this.log(this.username);
this.log(this.password); this.log(this.password);
callback(); callback();