We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The API.md page has the following example:
await page.setRequestInterception(true); page.on('request', request => { // Override headers const headers = Object.assign({}, request.headers(), { foo: 'bar', // set "foo" header origin: undefined, // remove "origin" header }); request.continue({headers}); });
When the example is executed as follows:
req.continue({headers:{'pragma': undefined}});
The actual headers look like:
Connection: keep-alive Pragma: undefined Cache-Control: no-cache Referer: http://www.google.com/ User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/77.0.3835.0 Safari/537.36
Notice that Pragma is still there, merely its value replaced.
Pragma
The text was updated successfully, but these errors were encountered:
i have the same issues.
Sorry, something went wrong.
fix(network): be able to remove headers using request.continue (#4797)
b9b6ca1
I think this was a regression caused here https://github.com/GoogleChrome/puppeteer/pull/4265/files#diff-d2ac7cb061b0c51644d0a5d6140e3a32R446 Fix #4743
fix(network): be able to remove headers using request.continue (puppe…
2713526
…teer#4797) I think this was a regression caused here https://github.com/GoogleChrome/puppeteer/pull/4265/files#diff-d2ac7cb061b0c51644d0a5d6140e3a32R446 Fix puppeteer#4743
Successfully merging a pull request may close this issue.
The API.md page has the following example:
When the example is executed as follows:
The actual headers look like:
Notice that
Pragma
is still there, merely its value replaced.The text was updated successfully, but these errors were encountered: