1
Fork 0
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:
Linus Groh 2022-07-20 17:40:05 +01:00
parent 7c824b84e2
commit 69d324d46a

View file

@ -273,7 +273,7 @@ DOM::ExceptionOr<void> Headers::fill(HeadersInit const& object)
// 2. Append (headers first item, headers 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)));
}