mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-18 05:10:57 +00:00
Renamed duplicate body variable.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user