Skip to content

Conversation

me21
Copy link

@me21 me21 commented Oct 16, 2024

At least for a small text file containing just "This is a test."

me21 added 2 commits October 16, 2024 13:27
At least for a small text file containing just "This is a test."
Fix bug with part_data_end and body_end not emitted
@me21 me21 changed the title Fix bug with part_data_end and body_end not emtted Fix bug with part_data_end and body_end not emitted Oct 16, 2024
@me21
Copy link
Author

me21 commented Oct 17, 2024

I just realized this reverts iafonov@6b63ed9, so we may need another fix after that.

Consider a file containing the following lines:

```
11:38<CR><LF>
14:23<CR><LF>
```

where <CR> and <LF> are single bytes with values 13 and 10 respectively.

The first two bytes on the next line after <CR><LF> is lost - the part data callback doesn't include them.
@me21
Copy link
Author

me21 commented Oct 17, 2024

Added another commit which fixes two lost bytes in the beginning of the new line if the previous one ended with .

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.

1 participant