Browse Source

Discard response payload on redirect response

http2
Vsevolod Strukchinsky 10 years ago
parent
commit
1f9281f27d
  1. 2
      index.js

2
index.js

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

Loading…
Cancel
Save