mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Fix #332
This commit is contained in:
parent
b4f808da74
commit
0d81e20129
1 changed files with 2 additions and 0 deletions
|
@ -2157,6 +2157,8 @@ public:
|
|||
case 3: { // Body
|
||||
{
|
||||
auto pattern = crlf_ + dash_;
|
||||
if (pattern.size() > buf_.size()) { return true; }
|
||||
|
||||
auto pos = buf_.find(pattern);
|
||||
if (pos == std::string::npos) { pos = buf_.size(); }
|
||||
if (!content_callback(buf_.data(), pos)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue