Commit d22ff2fc authored by Sergey Lyubka's avatar Sergey Lyubka

Really revert 48800697

parent fee2980d
......@@ -6859,7 +6859,7 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
mbuf_remove(io, consumed);
}
return 0;
} else {
} else if (boundary != NULL) {
size_t data_len = ((size_t)(boundary - io->buf) - 4);
size_t consumed = mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_DATA,
io->buf, data_len);
......@@ -6871,6 +6871,8 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
} else {
return 0;
}
} else {
return 0;
}
}
......
......@@ -1212,7 +1212,7 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
mbuf_remove(io, consumed);
}
return 0;
} else {
} else if (boundary != NULL) {
size_t data_len = ((size_t)(boundary - io->buf) - 4);
size_t consumed = mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_DATA,
io->buf, data_len);
......@@ -1224,6 +1224,8 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
} else {
return 0;
}
} else {
return 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment