Fix handling of redirect responses

main
Elbert Alias 3 years ago
parent 84a84c5fef
commit d9c18506bf

@ -588,6 +588,7 @@ class Site {
page.on('response', async (response) => {
try {
if (
response.status < 300 &&
response.frame().url() === url.href &&
response.request().resourceType() === 'script'
) {