mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
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:
parent
f88e7bc5ee
commit
5151f94d39
Notes:
github-actions[bot]
2024-08-05 08:02:25 +00:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/5151f94d393 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/955 Reviewed-by: https://github.com/kennethmyhra ✅
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue