Skip to content
Snippets Groups Projects
Commit ea11d2c0 authored by Daniel Wagner's avatar Daniel Wagner
Browse files

fixed returned length when chunk ends and data spans into next chunk

parent 12a2b8d6
No related branches found
No related tags found
No related merge requests found
......@@ -292,6 +292,7 @@ int multipart_parser_execute(multipart_parser* p, const char *buf, size_t len) {
if (p->_s->index == 0 && i == len - 1) {
i++;
EMIT_PART_DATA_CB(part_data);
i--; // otherwise this method returns len+1
}
break;
case s_end:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment