Browse Source

Merge pull request #27 from floatdrop/discard-response-on-redirect

Discard response payload on redirect response
http2
Sindre Sorhus 10 years ago
parent
commit
f55c5ae82a
  1. 2
      index.js

2
index.js

@ -66,6 +66,8 @@ function got(url, opts, cb) {
return; return;
} }
res.resume(); // Discard response
get(urlLib.resolve(url, res.headers.location), opts, cb); get(urlLib.resolve(url, res.headers.location), opts, cb);
return; return;
} }

Loading…
Cancel
Save