decode_header(): Typo when appending an unencoded chunk to the

previous unencoded chunk (e.g. when they appear on separate lines).
Closes the 2nd bug in SF #640110 (the first one's already been
fixed).
This commit is contained in:
Barry Warsaw 2003-03-06 06:37:42 +00:00
parent 1a2c37316b
commit 671c3e6373

View file

@ -92,7 +92,7 @@ def decode_header(header):
if unenc:
# Should we continue a long line?
if decoded and decoded[-1][1] is None:
decoded[-1] = (decoded[-1][0] + dec, None)
decoded[-1] = (decoded[-1][0] + SPACE + unenc, None)
else:
decoded.append((unenc, None))
if parts: