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 martin.panter
Recipients Lukasa, barry, demian.brecht, icordasc, martin.panter, mgdelmonte, piotr.dobrogost, r.david.murray
Date 2016-08-12.12:37:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In order to avoid messing too much with the intricacies of the existing email parsing, here is a patch for Python 3 that limits the behaviour changes to the HTTP module. It should fix the bad handling of broken header lines. As a side effect, it should also fix Issue 22233, since it bypasses the offending splitlines() call. I incorporated the test cases from my previous patches for Issue 26686 and Issue 22233.

I tried to maintain a minimal compatibility with the previous special behaviour for message/* and multipart/* message types, although I didn’t bother trying to emulate e.g. StartBoundaryNotFoundDefect (http.client.parse_headers() doesn’t pass any body to the email parser, so it won’t see any start boundaries.)
Date User Action Args
2016-08-12 12:37:55martin.pantersetrecipients: + martin.panter, barry, r.david.murray, piotr.dobrogost, icordasc, demian.brecht, Lukasa, mgdelmonte
2016-08-12 12:37:54martin.pantersetmessageid: <>
2016-08-12 12:37:54martin.panterlinkissue24363 messages
2016-08-12 12:37:54martin.pantercreate