Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(http): Make sure not to lose the stream when CL is invalid
When the Content-Length header is invalid, the Http11Message ends up dropping the stream before returning the error. This causes a panic when the `close_connection` method of the message is used later. This commit fixes this by saving the stream onto the message instance before returning the error. A regression test is also included.
- Loading branch information