Python: decoding unicode strings as Latin1.

According to PEP 3333, header names and values should be decoded as Latin1.
This commit is contained in:
Max Romanov
2018-08-06 19:16:45 +03:00
parent 1bb22d1e92
commit b021188e95
2 changed files with 6 additions and 6 deletions

View File

@@ -83,7 +83,6 @@ class TestUnitHTTPHeader(unit.TestUnitApplicationPython):
self.assertEqual(resp['headers']['Custom-Header'],
'(),/:;<=>?@[\]{}\t !#$%&\'*+-.^_`|~', 'value chars custom header')
@unittest.expectedFailure
def test_http_header_value_chars_edge(self):
self.load('custom_header')