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

bugfix: add extra \r\n\r\n only after all neccessary filtering #337

Closed
wants to merge 1 commit into from

Conversation

sergstetsuk
Copy link

In some cases user may enter \r\n\t\r\n between message header and body. Then Content-Length: [len] is miscalculated. The problem is that \r\n\r\n is not found before filtering and thus extra \r\n\r\n is added at the end of the message as if there is no message body present at all.

test.xml.zip

Content-Length must be 232 instead of 234 in such case.

@wdoekes
Copy link
Member

wdoekes commented May 20, 2019

Fixed in 61537b9. Thanks!

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.

None yet

3 participants