Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix weak condition of emit s_part_data #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

twxjyg
Copy link

@twxjyg twxjyg commented Aug 18, 2016

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.

@me21
Copy link

me21 commented Oct 17, 2024

This pull request causes part_data_end and body_end not emitted for a small text file containing just "This is a test." line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants