mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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) {
|
if (config.proxy) {
|
||||||
options.host = config.proxy.host;
|
options.host = config.proxy.host;
|
||||||
options.port = config.proxy.port;
|
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
|
// Create the request
|
||||||
|
|||||||
Reference in New Issue
Block a user