hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Allow for debug verification of content-length to be disabled

Open zachmatson opened this issue 2 years ago • 0 comments

To test the ability of some code to handle responses with invalid content-length, I want to provide a false value for this header and serve that in my test code. Unfortunately, hyper has this debug assertion which fails when trying to serve a request where the content-length header has been manually overridden to an incorrect value.

It would be nice if there was some way to disable this check, or a workaround for this use case.

zachmatson avatar Jan 22 '23 23:01 zachmatson