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

[fetch] Test that User-Agent is not a forbidden request header #39301

Merged

Conversation

andreubotella
Copy link
Member

@andreubotella andreubotella commented Mar 31, 2023

User-Agent used to be a forbidden request header until it was removed in whatwg/fetch#37. However, this removal was never tested in WPT, and Chrome still treats it as forbidden. This change adds that test.

`User-Agent` used to be a forbidden request header until it was
removed in whatwg/fetch#37. However, this was never added as a WPT
test, and Chrome still treats it as forbidden. This change adds that
test.
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreubotella andreubotella merged commit 55ea64f into master Mar 31, 2023
@andreubotella andreubotella deleted the andreubotella/user-agent-not-a-forbidden-request-header branch March 31, 2023 09:50
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Apr 8, 2023
…-platform-tests#39301)

`User-Agent` used to be a forbidden request header until it was
removed in whatwg/fetch#37. However, this was never added as a WPT
test, and Chrome still treats it as forbidden. This change adds that
test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants