2
0
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:
Nick Uraltsev
2016-04-08 16:41:51 -07:00
parent 775ca3e732
commit 4de17bca09
+1 -1
View File
@@ -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