mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Fix #2096
This commit is contained in:
parent
5a1ecc3958
commit
48084d55f2
2 changed files with 11 additions and 0 deletions
|
@ -4170,6 +4170,9 @@ inline bool parse_header(const char *beg, const char *end, T fn) {
|
|||
p++;
|
||||
}
|
||||
|
||||
auto name = std::string(beg, p);
|
||||
if (!detail::fields::is_field_name(name)) { return false; }
|
||||
|
||||
if (p == end) { return false; }
|
||||
|
||||
auto key_end = p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue