Allow multiple whitespace after 'more_set_headers'

This commit is contained in:
orhtej2 2024-02-10 21:32:56 +01:00
parent d0c763ee28
commit caee27ddaf

View file

@ -1418,7 +1418,7 @@ class Configurations(TestSuite):
def right_syntax(line): def right_syntax(line):
return re.search( return re.search(
r"more_set_headers [\"\'][\w-]+\s?: .*[\"\'];", line r"more_set_headers +[\"\'][\w-]+\s?: .*[\"\'];", line
) )
if any(not right_syntax(line) for line in more_set_headers_lines): if any(not right_syntax(line) for line in more_set_headers_lines):