mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Merge #11401 fix from 3.1.
This commit is contained in:
commit
4e4326829f
3 changed files with 11 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ class Header:
|
|||
self._continuation_ws, splitchars)
|
||||
for string, charset in self._chunks:
|
||||
lines = string.splitlines()
|
||||
formatter.feed(lines[0], charset)
|
||||
formatter.feed(lines[0] if lines else '', charset)
|
||||
for line in lines[1:]:
|
||||
formatter.newline()
|
||||
if charset.header_encoding is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue