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
commit 16136f0bdd
Notes: sideshowbarker 2024-07-17 05:05:41 +09:00

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);