mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
_encode_chunks(): Throw out empty chunks.
This commit is contained in:
parent
240754933e
commit
6613fb8412
1 changed files with 2 additions and 0 deletions
|
|
@ -361,6 +361,8 @@ class Header:
|
||||||
# =?charset2?b?SvxyZ2VuIEL2aW5n?="
|
# =?charset2?b?SvxyZ2VuIEL2aW5n?="
|
||||||
chunks = []
|
chunks = []
|
||||||
for header, charset in newchunks:
|
for header, charset in newchunks:
|
||||||
|
if not header:
|
||||||
|
continue
|
||||||
if charset is None or charset.header_encoding is None:
|
if charset is None or charset.header_encoding is None:
|
||||||
s = header
|
s = header
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue