(self)
Make any necessary header changes or defaults

        Subclasses can extend this to add other defaults.
Make any necessary header changes or defaults
Make any necessary header changes or defaults
def cleanup_headers(self):
        """Make any necessary header changes or defaults

        Subclasses can extend this to add other defaults.
        """
        if 'Content-Length' not in self.headers:
            self.set_content_length()
def cleanup_headers ( self ) : if 'Content-Length' not in self . headers : self . set_content_length ( )