Skip to content

Commit

Permalink
Fix request path for proxied requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickuraltsev committed Apr 8, 2016
1 parent 775ca3e commit 4de17bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/http.js
Expand Up @@ -66,7 +66,7 @@ module.exports = function httpAdapter(resolve, reject, config) {
if (config.proxy) {
options.host = config.proxy.host;
options.port = config.proxy.port;
options.path = parsed.protocol + '//' + parsed.hostname + buildUrl(parsed.path, config.params).replace(/^\?/, '')
options.path = parsed.protocol + '//' + parsed.hostname + options.path;
}

// Create the request
Expand Down

0 comments on commit 4de17bc

Please sign in to comment.