Skip to content

Commit

Permalink
Issue #45
Browse files Browse the repository at this point in the history
Delete trailing slash from bridge request resource.
  • Loading branch information
ebaauw committed Jan 14, 2017
1 parent 1df362c commit af1dc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HueBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ HueBridge.prototype.request = function(method, resource, body) {
return new Promise(function(resolve, reject) {
const requestObj = {
method: method,
url: this.url + resource,
url: this.url + (resource === "/" ? "" : resource),
timeout: this.platform.config.timeout,
json: true
};
Expand Down

0 comments on commit af1dc2e

Please sign in to comment.