hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Raising error in HTTP11Response if created with illegal attributes

Open AvivC opened this issue 9 years ago • 1 comments

An HTTP response must either specify a content-length header, specify 'close' for a connection header to signal that the connection will be closed after the response, or be a chunked response.

If none of these conditions are true, we raise a detailed ValueError, instead of the plain assertion.

AvivC avatar Apr 25 '16 12:04 AvivC

Thanks for this! The patch fails the linter: do you mind cleaning that up?

Lukasa avatar Apr 25 '16 16:04 Lukasa