Fix pipelining issue with multipart upload

Do not clear buffer at the end of multipart request to allow following request to proceed.

Closes https://github.com/cesanta/mongoose/pull/940

CL: mg: Fix pipelining issue with multipart upload

PUBLISHED_FROM=cc7d38b126eaa863553ee4e124cfafcd72030fcf
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2018-06-26 12:05:04 +00:00
1 parent 3bbbd41196
commit 1c8449cea6
3 files changed
+90 -2

No files matched your search

-1
View File
@@ -1159,7 +1159,6 @@ static void mg_http_multipart_continue(struct mg_connection *c) {
break;
}
case MPS_FINISHED: {
mbuf_remove(&c->recv_mbuf, c->recv_mbuf.len);
return;
}
}