LibWeb/Fetch: Correct check for X-Method-Override

Previously the code was checking for X-Method.

See:
 - http://wpt.live/fetch/api/basic/request-forbidden-headers.any.html
This commit is contained in:
Jamie Mansfield 2024-08-04 11:53:52 +01:00 committed by Andreas Kling
parent f88e7bc5ee
commit 5151f94d39
Notes: github-actions[bot] 2024-08-05 08:02:25 +00:00

View file

@ -725,7 +725,7 @@ bool is_forbidden_request_header(Header const& header)
if (name.is_one_of_ignoring_ascii_case(
"X-HTTP-Method"sv,
"X-HTTP-Method-Override"sv,
"X-Method"sv)) {
"X-Method-Override"sv)) {
// 1. Let parsedValues be the result of getting, decoding, and splitting value.
auto parsed_values = get_decode_and_split_header_value(header.value);