mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-14 16:58:30 +00:00
Allow empty header values (#1965)
This commit is contained in:
parent
0cc1ca9a8d
commit
d869054318
2 changed files with 10 additions and 1 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue