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:
parent
bc2ebcadc0
commit
16136f0bdd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue