From 5440694243cf80a819cb0f519e6cc60bb009621a Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 3 Nov 2015 00:04:46 +0100 Subject: [PATCH] Renamed duplicate body variable. --- accessories/Http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accessories/Http.js b/accessories/Http.js index 24d01df..13d07c2 100644 --- a/accessories/Http.js +++ b/accessories/Http.js @@ -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();