mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibWeb: Fix accidental (name, name) header in Headers::fill()
This makes two more WPT tests pass here: http://wpt.live/fetch/api/headers/headers-basic.any.html
This commit is contained in:
parent
7c824b84e2
commit
69d324d46a
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ DOM::ExceptionOr<void> Headers::fill(HeadersInit const& object)
|
|||
// 2. Append (header’s first item, header’s second item) to headers.
|
||||
auto header = Fetch::Infrastructure::Header {
|
||||
.name = TRY_OR_RETURN_OOM(ByteBuffer::copy(entry[0].bytes())),
|
||||
.value = TRY_OR_RETURN_OOM(ByteBuffer::copy(entry[0].bytes())),
|
||||
.value = TRY_OR_RETURN_OOM(ByteBuffer::copy(entry[1].bytes())),
|
||||
};
|
||||
TRY(append(move(header)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue