summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-10-26 10:26:12 +0100
committerLinus Groh <mail@linusgroh.de>2022-10-26 10:36:48 +0100
commit16136f0bddb35af7148e78dbf8f1de97a1575e53 (patch)
tree7a9eac1ba5aa92359f8bd9f3fa8df99f3e1a7077 /Userland
parentbc2ebcadc0eb695605051c9d362c3f5dc184c63c (diff)
downloadserenity-16136f0bddb35af7148e78dbf8f1de97a1575e53.zip
LibWeb: Fix incorrect peek offset in HeaderList::get_decode_and_split()
We want to look at the current character, not the next one.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp
index 1888476bfd..0147f03883 100644
--- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp
+++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp
@@ -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);