mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-27737: Allow whitespace only headers encoding (#13478)
This commit is contained in:
parent
6bc5917903
commit
ef5bb25e2d
3 changed files with 6 additions and 1 deletions
|
@ -4964,6 +4964,9 @@ A very long line that must get split to something other than at the
|
|||
msg['SomeHeader'] = ' value with leading ws'
|
||||
self.assertEqual(str(msg), "SomeHeader: value with leading ws\n\n")
|
||||
|
||||
def test_whitespace_header(self):
|
||||
self.assertEqual(Header(' ').encode(), ' ')
|
||||
|
||||
|
||||
|
||||
# Test RFC 2231 header parameters (en/de)coding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue