mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +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
Notes:
sideshowbarker
2024-07-17 08:45:22 +09:00
Author: https://github.com/linusg
Commit: 69d324d46a
Pull-request: https://github.com/SerenityOS/serenity/pull/14628
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