Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Raising error in HTTP11Response if created with illegal attributes #235

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Commits on Apr 25, 2016

  1. 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.
    Aviv Cohn committed Apr 25, 2016
    Configuration menu
    Copy the full SHA
    1fb6f2b View commit details
    Browse the repository at this point in the history