2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Fixing redirect behaviour

This commit is contained in:
Gary Chambers
2016-01-19 14:51:14 +00:00
parent 7ec97dd26b
commit f44d9ce677
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ module.exports = function httpAdapter(resolve, reject, config) {
// Parse url
var parsed = url.parse(config.url);
var options = {
host: parsed.hostname,
hostname: parsed.hostname,
port: parsed.port,
path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''),
method: config.method,