From d9c18506bf8d4a317a8adea2ee4601c0c1679f9c Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Sat, 20 Nov 2021 14:11:51 +1100 Subject: [PATCH] Fix handling of redirect responses --- src/drivers/npm/driver.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 11ef71d52..11e443013 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -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' ) {