Skip to content

Conversation

seanmonstar
Copy link
Member

@seanmonstar seanmonstar commented Jul 9, 2024

If a chunked body had valid chunks, but ended without a 0 in the final chunk (so, just \r\n\r\n), it would be parsed as a valid end. Now it will be rejected as the final chunk MUST be 0\r\n\r\n.

This was partially done before (#3494), but only if there were no chunks before the final. This fixes both paths.

If a chunked body had valid chunks, but ended without a `0` in the final
chunk (so, just `\r\n\r\n`), it would be parsed as a valid end. Now it
will be rejected as the final chunk MUST be `0\r\n\r\n`.

This was partially done before, but only if there were no chunks before
the final. This fixes both paths.
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