mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +03:00
Fix request path for proxied requests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user