Allow empty header values (#1965)

This commit is contained in:
Jiwoo Park authored and GitHub committed 2024-10-18 10:16:48 -04:00
1 parent 0cc1ca9a8d
commit d869054318
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -4115,7 +4115,7 @@ inline bool parse_header(const char *beg, const char *end, T fn) {
p++;
}
if (p < end) {
if (p <= end) {
auto key_len = key_end - beg;
if (!key_len) { return false; }