Merge pull request #4334 from mhils/issue-4312

fix #4312
This commit is contained in:
Maximilian Hils 2020-12-10 10:42:31 +01:00 committed by GitHub
commit a300fc132d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,8 @@ class ModifyHeaders:
)
def configure(self, updated):
self.replacements = []
if "modify_headers" in updated:
self.replacements = []
for option in ctx.options.modify_headers:
try:
spec = parse_modify_spec(option, False)