Merge pull request #127 from orhtej2/more_set_headers_regex

Allow multiple whitespace after 'more_set_headers'
This commit is contained in:
Alexandre Aubin 2024-02-12 20:08:36 +01:00 committed by GitHub
commit 8c00413d2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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