multipart-parser-c
multipart-parser-c copied to clipboard
fix: Fix weak condition of emit s_part_data
If the file content contains char of CR, the parse progress may be stop in middle of file content. So, the condition of emit s_part_data callback is weak, I fix the problem by add a condition of [i >= len -p->boundary_length -6], len is the body length, 6 is other char number that remainning of body content length.