Skip to content

Commit 9801a35

Browse files
Fix processing request received in multiple packets
1 parent 689b125 commit 9801a35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

echttp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ static int echttp_received (int client, char *data, int length) {
614614
if (context->contentlength > (int)(enddata - endreq)) {
615615
if (echttp_debug) printf("HTTP: waiting for end of content.\n");
616616
context->state = ECHTTP_STATE_CONTENT;
617+
consumed += ((int) (endreq - data));
617618
return consumed; // Wait for more.
618619
}
619620
}

0 commit comments

Comments
 (0)