Browse Source

Merge pull request #54 from floatdrop/host-port-in-options-test

Host or path in options breaks redirects
http2
Sindre Sorhus 10 years ago
parent
commit
d26edbd8c4
  1. 8
      test/test-redirects.js

8
test/test-redirects.js

@ -59,6 +59,14 @@ tape('throws on endless redirect', function (t) {
});
});
tape('host+path in options are not breaking redirects', function (t) {
got(s.url + '/relative', {host: s.url, path: '/relative'}, function (err, data) {
t.error(err);
t.equal(data, 'reached');
t.end();
});
});
tape('cleanup', function (t) {
s.close();
t.end();

Loading…
Cancel
Save