This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author grumblor
Recipients grumblor
Date 2021-03-11.11:31:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615462311.9.0.496133482292.issue43474@roundup.psfhosted.org>
In-reply-to
Content
perhaps simply returning the method if _headers_buffer isn't defined is better since there is probably nothing to flush.

    def end_headers(self):
        if not hasattr(self, '_headers_buffer'):
            return 1 
        """Send the blank line ending the MIME headers."""
        if self.request_version != 'HTTP/0.9':
            self._headers_buffer.append(b"\r\n")
            self.flush_headers()
History
Date User Action Args
2021-03-11 11:31:51grumblorsetrecipients: + grumblor
2021-03-11 11:31:51grumblorsetmessageid: <1615462311.9.0.496133482292.issue43474@roundup.psfhosted.org>
2021-03-11 11:31:51grumblorlinkissue43474 messages
2021-03-11 11:31:51grumblorcreate