This commit is contained in:
Sergey Lyubka 2020-06-11 19:04:24 +01:00
parent 5d217a1262
commit d6693ed360
2 changed files with 2 additions and 6 deletions

View File

@ -6859,7 +6859,7 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
mbuf_remove(io, consumed); mbuf_remove(io, consumed);
} }
return 0; return 0;
} else if (boundary != NULL) { } else {
size_t data_len = ((size_t)(boundary - io->buf) - 4); size_t data_len = ((size_t)(boundary - io->buf) - 4);
size_t consumed = mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_DATA, size_t consumed = mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_DATA,
io->buf, data_len); io->buf, data_len);
@ -6871,8 +6871,6 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
} else { } else {
return 0; return 0;
} }
} else {
return 0;
} }
} }

View File

@ -1212,7 +1212,7 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
mbuf_remove(io, consumed); mbuf_remove(io, consumed);
} }
return 0; return 0;
} else if (boundary != NULL) { } else {
size_t data_len = ((size_t)(boundary - io->buf) - 4); size_t data_len = ((size_t)(boundary - io->buf) - 4);
size_t consumed = mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_DATA, size_t consumed = mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_DATA,
io->buf, data_len); io->buf, data_len);
@ -1224,8 +1224,6 @@ static int mg_http_multipart_continue_wait_for_chunk(struct mg_connection *c) {
} else { } else {
return 0; return 0;
} }
} else {
return 0;
} }
} }