Skip to content
New issue

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

[BUG] Referer header is duplicated if set via setExtraHTTPHeaders #8999

Closed
yury-s opened this issue Sep 17, 2021 · 1 comment
Closed

[BUG] Referer header is duplicated if set via setExtraHTTPHeaders #8999

yury-s opened this issue Sep 17, 2021 · 1 comment

Comments

@yury-s
Copy link
Member

yury-s commented Sep 17, 2021

The following test fails in Chromium:

  const response = await page.goto(server.EMPTY_PAGE);
  expect(response.ok()).toBe(true);
  expect(response.request().headers()['referer']).toBe(server.EMPTY_PAGE);

The headers look like this:

[
  {
    "name": "Upgrade-Insecure-Requests",
    "value": "1"
  },
  {
    "name": "User-Agent",
    "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/96.0.4645.0 Safari/537.36"
  },
  {
    "name": "referer",
    "value": "http://localhost:8907/empty.html"
  },
  {
    "name": "Referer",
    "value": "http://localhost:8907/empty.html"
  }
]
@pavelfeldman
Copy link
Member

Why was this issue closed?

We are prioritizing the bugs based on the upvotes, recency and our ability to act. It looks like this issue only has a handful of upvotes, has not been touched recently and/or we lack sufficient feedback to act on it. We are closing issues like this one to keep our bug database maintainable. Please feel free to open a new issue and link this one to it if you think this is a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants