Open mathbruyen opened 1 year ago
This issue was not reproducible. Please check that your example runs locally and the following:
puppeteer
and puppeteer-core
.Ensure the error string is just the error message.
Bad:
Error: something went wrong
at Object.<anonymous> (/Users/username/repository/script.js:2:1)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Good: Error: something went wrong
.
Once the above checks are satisfied, please edit your issue with the changes and we will try to reproduce the bug again.
The new headless behaviour matches the headful behaviour so the issue is not headless mode specific.
Upstream https://crbug.com/1448205
Bug expectation
After setting
Accept-Language
header withsetExtraHTTPHeaders
, I expected the header to overridden set on all requests.The header is sent on initial request but on redirects the header takes its default value (
en-US,en;q=0.9
).Reproducer in docker: reproducer.zip
Bug behavior
Minimal, reproducible example
Error string
Print "/redirected => fr" for both old/new headless mode
Puppeteer configuration
No response
Puppeteer version
20.3.0
Node version
20.2.0
Package manager
npm
Package manager version
9.6.6
Operating system
Linux