_merge_csp: Avoid duplicate values

This commit is contained in:
Raphael Michel
2021-06-20 10:12:47 +02:00
parent 038413be88
commit b7f5631ad0

View File

@@ -214,7 +214,7 @@ def _render_csp(h):
def _merge_csp(a, b):
for k, v in a.items():
if k in b:
a[k] += b[k]
a[k] += [i for i in b[k] if i not in a[k]]
for k, v in b.items():
if k not in a: