Browse Source

fix redirects for host/port etc... in options

http2
Vsevolod Strukchinsky 10 years ago
parent
commit
95add95542
  1. 5
      index.js

5
index.js

@ -123,6 +123,11 @@ function got(url, opts, cb) {
return;
}
delete opts.host;
delete opts.hostname;
delete opts.port;
delete opts.path;
get(urlLib.resolve(url, res.headers.location), opts, cb);
return;
}

Loading…
Cancel
Save