mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
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:
parent
1a2c37316b
commit
671c3e6373
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue