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 r.david.murray
Recipients icordasc, mgdelmonte, r.david.murray
Date 2015-06-02.16:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Ah, in fact that's exactly where it comes from, since httplib uses the email header parsing code.  In python3 we are actually using the email package to parse the headers (which is sensible) (in 2.7 it is a copy of code from the old mimelib with some tweaks).  Fixing this in python3 is best done by making the error recovery enhancement(s) I mentioned in the email package.  

Please note that changing this behavior has the potential to break working code.  That is, just as we have here a server that is out of spec and sending invalid links in the middle of headers, we may have a server that is out of spec by not sending the blank delimiter, which is currently being handled "correctly".  Thus I don't think your simple fix is advisable, instead I think we should pursue the more complicated "look ahead" fix.
Date User Action Args
2015-06-02 16:28:01r.david.murraysetrecipients: + r.david.murray, icordasc, mgdelmonte
2015-06-02 16:28:01r.david.murraysetmessageid: <>
2015-06-02 16:28:01r.david.murraylinkissue24363 messages
2015-06-02 16:28:00r.david.murraycreate