mirror of https://github.com/python/cpython
da2525ed2a
where in lax parsing, the first non-header line after a header block (e.g. the first line not containing a colon, and not a continuation), can be treated as the first body line, even without the RFC mandated blank line separator. rfc822 had this behavior, and I vaguely remember problems with this, but can't remember details. In any event, all the tests still pass, so I guess we'll find out. ;/ This patch works by returning the non-header, non-continuation line from _parseheader() and using that as the first header line prepended to fp.read() if given. It's usually None. We use this approach instead of trying to seek/tell the file-like object. |
||
---|---|---|
.. | ||
test | ||
Charset.py | ||
Encoders.py | ||
Errors.py | ||
Generator.py | ||
Header.py | ||
Iterators.py | ||
MIMEAudio.py | ||
MIMEBase.py | ||
MIMEImage.py | ||
MIMEMessage.py | ||
MIMEMultipart.py | ||
MIMENonMultipart.py | ||
MIMEText.py | ||
Message.py | ||
Parser.py | ||
Utils.py | ||
__init__.py | ||
_compat21.py | ||
_compat22.py | ||
_parseaddr.py | ||
base64MIME.py | ||
quopriMIME.py |