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