1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb/Fetch: Tweak wording in some spec comments

This is a change in the Fetch spec.

See: 223ca89
This commit is contained in:
Linus Groh 2022-12-07 18:29:17 +00:00
parent a156722744
commit 2f1bda3347
4 changed files with 8 additions and 8 deletions

View file

@ -413,7 +413,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Request>> Request::construct_impl(JS::Realm
// 3. Empty thiss headerss header list.
request_object->headers()->header_list()->clear();
// 4. If headers is a Headers object, then for each header in its header list, append (headers name, headers value) to thiss headers.
// 4. If headers is a Headers object, then for each header of its header list, append header to thiss headers.
if (auto* header_list = headers.get_pointer<JS::NonnullGCPtr<Infrastructure::HeaderList>>()) {
for (auto& header : *header_list->ptr())
TRY(request_object->headers()->append(DeprecatedString::copy(header.name), DeprecatedString::copy(header.value)));