mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
@@ -94,6 +94,8 @@ module.exports = function httpAdapter(config) {
|
|||||||
|
|
||||||
if (proxy) {
|
if (proxy) {
|
||||||
options.host = proxy.host;
|
options.host = proxy.host;
|
||||||
|
options.hostname = proxy.host;
|
||||||
|
options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');
|
||||||
options.port = proxy.port;
|
options.port = proxy.port;
|
||||||
options.path = parsed.protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;
|
options.path = parsed.protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user