mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
bpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484)
This commit is contained in:
parent
1d2dafa249
commit
8fe9eed937
3 changed files with 28 additions and 1 deletions
|
@ -1875,7 +1875,7 @@ def get_group(value):
|
|||
if not value:
|
||||
group.defects.append(errors.InvalidHeaderDefect(
|
||||
"end of header in group"))
|
||||
if value[0] != ';':
|
||||
elif value[0] != ';':
|
||||
raise errors.HeaderParseError(
|
||||
"expected ';' at end of group but found {}".format(value))
|
||||
group.append(ValueTerminal(';', 'group-terminator'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue