Permalink
Browse files

Removed useless "&undefined=undefined" from URL parameters when no au…

…th key is provided
  • Loading branch information...
1 parent fe0e5d1 commit 298c9039f26b26028ec79dae2a9d9dadf74b5b33 @adamkaplan adamkaplan committed Sep 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.js
View
2 app.js
@@ -455,7 +455,7 @@ function processRequest(req, res, next) {
console.log('Unsecured Call');
// Add API Key to params, if any.
- if (apiKey != '') {
+ if (apiKey != '' && apiKey != 'undefined' && apiKey != undefined) {
options.path += '&' + apiConfig.keyParam + '=' + apiKey;
}

0 comments on commit 298c903

Please sign in to comment.