mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: don't keep connection alive (#12096)
This commit is contained in:
parent
a1c527df96
commit
0a142bf0aa
@ -54,6 +54,9 @@ export function httpRequest(
|
||||
res.headers.location
|
||||
) {
|
||||
httpRequest(new URL(res.headers.location), method, response);
|
||||
// consume response data to free up memory
|
||||
// And prevents the connection from being kept alive
|
||||
res.resume();
|
||||
} else {
|
||||
response(res);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user