Skip to content

Commit

Permalink
Fix query params due to Restify upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
thyb committed Dec 6, 2016
1 parent 86ada54 commit b2ad616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/oauth/oauth-base.coffee
Expand Up @@ -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] != '/'
Expand Down

1 comment on commit b2ad616

@benlogan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking forward to this fix! 👍

Please sign in to comment.