Commit 6e404675 authored by Barry Warsaw's avatar Barry Warsaw

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).
parent 93c22039
...@@ -92,7 +92,7 @@ def decode_header(header): ...@@ -92,7 +92,7 @@ def decode_header(header):
if unenc: if unenc:
# Should we continue a long line? # Should we continue a long line?
if decoded and decoded[-1][1] is None: if decoded and decoded[-1][1] is None:
decoded[-1] = (decoded[-1][0] + dec, None) decoded[-1] = (decoded[-1][0] + SPACE + unenc, None)
else: else:
decoded.append((unenc, None)) decoded.append((unenc, None))
if parts: if parts:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment