commit | de91276a5c90b9d3e42866054e48d255a37981b3 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Wed Mar 16 18:26:23 2011 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Wed Mar 16 18:26:23 2011 -0400 |
tree | 31656289206bf4558578ef3d6c0791282330e419 | |
parent | 6d94bd470e3f4aa1dc7295b034553509ace2c654 [diff] [blame] |
#11401: handle headers with no value.
diff --git a/Lib/email/header.py b/Lib/email/header.py index 43220df..da739d5 100644 --- a/Lib/email/header.py +++ b/Lib/email/header.py
@@ -304,7 +304,7 @@ 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: