From cca4610d5deedf77f3833e53063eaa3ca77a09c1 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 30 Oct 2022 21:36:34 +0100 Subject: [PATCH] Make it actually work --- src/HttpParser.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HttpParser.h b/src/HttpParser.h index 74d4aec..59c03b7 100644 --- a/src/HttpParser.h +++ b/src/HttpParser.h @@ -226,7 +226,9 @@ private: static inline void *consumeFieldName(char *p) { for (; true; p += 8) { if (notFieldNameWord(*(uint64_t *)p)) { - while (isFieldNameByte(*(unsigned char *)p)) p++; + while (isFieldNameByte(*(unsigned char *)p)) { + *(p++) |= 0x20; + } return (void *)p; } (*(uint64_t *)p) |= 0x2020202020202020ull;