This repository has been archived by the owner on Jan 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raising error in HTTP11Response if created with illegal attributes
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.
- Loading branch information
Aviv Cohn
committed
Apr 25, 2016
1 parent
065b539
commit 1d8f94b
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters