|
|
@ -90,12 +90,8 @@ class PuppeteerBrowser extends Browser {
|
|
|
|
|
|
|
|
|
|
|
|
page.setDefaultTimeout(this.options.maxWait);
|
|
|
|
page.setDefaultTimeout(this.options.maxWait);
|
|
|
|
|
|
|
|
|
|
|
|
await page.setRequestInterception(true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.on('error', reject);
|
|
|
|
page.on('error', reject);
|
|
|
|
|
|
|
|
|
|
|
|
page.on('request', request => request.continue());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.on('response', (response) => {
|
|
|
|
page.on('response', (response) => {
|
|
|
|
if (response.status() === 301 || response.status() === 302) {
|
|
|
|
if (response.status() === 301 || response.status() === 302) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|