mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
CSP: Strip keys with empty values from header (#2322)
This commit is contained in:
committed by
GitHub
parent
803aa0b70d
commit
72455209bb
@@ -208,7 +208,7 @@ def _parse_csp(header):
|
||||
|
||||
|
||||
def _render_csp(h):
|
||||
return "; ".join(k + ' ' + ' '.join(v) for k, v in h.items())
|
||||
return "; ".join(k + ' ' + ' '.join(v) for k, v in h.items() if v)
|
||||
|
||||
|
||||
def _merge_csp(a, b):
|
||||
|
||||
Reference in New Issue
Block a user