mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +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
2 changed files with 5 additions and 5 deletions
|
@ -154,7 +154,7 @@ WebIDL::ExceptionOr<void> Headers::set(DeprecatedString const& name_string, Depr
|
|||
if (m_guard == Guard::Request && Infrastructure::is_forbidden_header_name(name))
|
||||
return {};
|
||||
|
||||
// 5. Otherwise, if this’s guard is "request-no-cors" and name/value is not a no-CORS-safelisted request-header, return.
|
||||
// 5. Otherwise, if this’s guard is "request-no-cors" and (name, value) is not a no-CORS-safelisted request-header, return.
|
||||
if (m_guard == Guard::RequestNoCORS && !Infrastructure::is_no_cors_safelisted_request_header(header))
|
||||
return {};
|
||||
|
||||
|
@ -253,7 +253,7 @@ WebIDL::ExceptionOr<void> Headers::append(Infrastructure::Header header)
|
|||
.value = temporary_value.release_value(),
|
||||
};
|
||||
|
||||
// 4. If name/temporaryValue is not a no-CORS-safelisted request-header, then return.
|
||||
// 4. If (name, temporaryValue) is not a no-CORS-safelisted request-header, then return.
|
||||
if (!Infrastructure::is_no_cors_safelisted_request_header(temporary_header))
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue