mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
LibWeb/Fetch: Use tuple syntax for headers in spec comments
This is an editorial change in the Fetch spec.
See: b482186
This commit is contained in:
parent
b3b51a5001
commit
011f6a6cb4
Notes:
sideshowbarker
2024-07-17 11:34:34 +09:00
Author: https://github.com/linusg
Commit: 011f6a6cb4
Pull-request: https://github.com/SerenityOS/serenity/pull/16362
Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 5 additions and 5 deletions
|
@ -569,13 +569,13 @@ bool is_no_cors_safelisted_request_header_name(ReadonlyBytes header_name)
|
|||
// https://fetch.spec.whatwg.org/#no-cors-safelisted-request-header
|
||||
bool is_no_cors_safelisted_request_header(Header const& header)
|
||||
{
|
||||
// To determine whether a header header is a no-CORS-safelisted request-header, run these steps:
|
||||
// To determine whether a header (name, value) is a no-CORS-safelisted request-header, run these steps:
|
||||
|
||||
// 1. If header’s name is not a no-CORS-safelisted request-header name, then return false.
|
||||
// 1. If name is not a no-CORS-safelisted request-header name, then return false.
|
||||
if (!is_no_cors_safelisted_request_header_name(header.name))
|
||||
return false;
|
||||
|
||||
// 2. Return whether header is a CORS-safelisted request-header.
|
||||
// 2. Return whether (name, value) is a CORS-safelisted request-header.
|
||||
return is_cors_safelisted_request_header(header);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue