mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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?="
|
||||
chunks = []
|
||||
for header, charset in newchunks:
|
||||
if not header:
|
||||
continue
|
||||
if charset is None or charset.header_encoding is None:
|
||||
s = header
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue