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

Fixed parsing messages with no headers #14

Merged
merged 7 commits into from
Sep 25, 2024

Conversation

zefir-git
Copy link
Owner

@zefir-git zefir-git commented Sep 25, 2024

A message that begins with an empty line (i.e. begins with CRLF) is considered to have no headers (anything after the first CRLF is then body). This PR fixes the parsing of such messages.

Some more tests were added for better RFC conformity.

@zefir-git zefir-git added the bug Something isn't working label Sep 25, 2024
@zefir-git zefir-git self-assigned this Sep 25, 2024
@zefir-git zefir-git changed the title Fix parsing message no headers Fixed parsing messages with no headers Sep 25, 2024
@zefir-git zefir-git marked this pull request as ready for review September 25, 2024 13:38
@zefir-git zefir-git merged commit 4413919 into main Sep 25, 2024
3 checks passed
@zefir-git zefir-git deleted the fix-parsing-message-no-headers branch September 25, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant