Skip to content

Commit

Permalink
Fix processing request received in multiple packets
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Nov 10, 2021
1 parent 689b125 commit 9801a35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions echttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ static int echttp_received (int client, char *data, int length) {
if (context->contentlength > (int)(enddata - endreq)) {
if (echttp_debug) printf("HTTP: waiting for end of content.\n");
context->state = ECHTTP_STATE_CONTENT;
consumed += ((int) (endreq - data));
return consumed; // Wait for more.
}
}
Expand Down

0 comments on commit 9801a35

Please sign in to comment.