From b2ad616592883b2773b1489e374c65575e319913 Mon Sep 17 00:00:00 2001 From: Thibaud Arnault Date: Tue, 6 Dec 2016 02:37:38 -0400 Subject: [PATCH] Fix query params due to Restify upgrade --- src/core/oauth/oauth-base.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/oauth/oauth-base.coffee b/src/core/oauth/oauth-base.coffee index 442204cfd..63e94e914 100644 --- a/src/core/oauth/oauth-base.coffee +++ b/src/core/oauth/oauth-base.coffee @@ -84,7 +84,7 @@ module.exports = (env) -> } _buildServerRequestUrl: (url, req, configurationUrl) -> - if typeof req.query == 'function' and typeof req.query() == 'string' + if typeof req.query == 'function' and typeof req.query() == 'string' and req.query().length > 0 and url.indexOf('?') == -1 url += "?" + req.query() if ! url.match(/^[a-z]{2,16}:\/\//) if url[0] != '/'