Skip to content

Commit

Permalink
fixed returned length when chunk ends and data spans into next chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltwagner committed Feb 25, 2012
1 parent 12a2b8d commit ea11d2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions multipart_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ int multipart_parser_execute(multipart_parser* p, const char *buf, size_t len) {
if (p->_s->index == 0 && i == len - 1) {
i++;
EMIT_PART_DATA_CB(part_data);
i--; // otherwise this method returns len+1
}
break;
case s_end:
Expand Down

0 comments on commit ea11d2c

Please sign in to comment.