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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user