Skip to content

Commit

Permalink
[fetch] Test that User-Agent is not a forbidden request header (web…
Browse files Browse the repository at this point in the history
…-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.
  • Loading branch information
andreubotella authored and cookiecrook committed Apr 8, 2023
1 parent 0a11353 commit 739e338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fetch/api/request/request-headers.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var validRequestHeaders = [
["sec", "OK"],
["secb", "OK"],
["Set-Cookie2", "OK"],
["User-Agent", "OK"],
];
var invalidRequestHeaders = [
["Accept-Charset", "KO"],
Expand Down

0 comments on commit 739e338

Please sign in to comment.