Skip to content

Commit b902bd9

Browse files
author
Eero Otsus
committed
Query must still be created to properly pass strict mode
1 parent 5a3ac00 commit b902bd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/apiUrl.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111

1212
module.exports = function apiUrl(path, options, tokenNeeded) {
1313
var queryObj = {};
14-
if(options.oauth)
15-
return protocol + '://' + proxyHost + '/' + path;
1614

17-
if (tokenNeeded) {
15+
if (!options.oauth && tokenNeeded) {
1816
queryObj.api_token = options.apiToken;
1917
}
2018
if (options.strictMode === true) {

0 commit comments

Comments
 (0)