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

LibWeb: Fix incorrect peek offset in HeaderList::get_decode_and_split()

We want to look at the current character, not the next one.
This commit is contained in:
Linus Groh 2022-10-26 10:26:12 +01:00
parent bc2ebcadc0
commit 16136f0bdd

View file

@ -121,7 +121,7 @@ ErrorOr<Optional<Vector<String>>> HeaderList::get_decode_and_split(ReadonlyBytes
// 2. Otherwise:
else {
// 1. Assert: the code point at position within input is U+002C (,).
VERIFY(lexer.peek(1) == ',');
VERIFY(lexer.peek() == ',');
// 2. Advance position by 1.
lexer.ignore(1);