Skip to content

Commit

Permalink
[fetch] Test that User-Agent is not a forbidden request header (#39301
Browse files Browse the repository at this point in the history
)

`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 pull[bot] committed Jun 26, 2023
1 parent d709d92 commit bf59667
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 bf59667

Please sign in to comment.