Skip to content

Commit

Permalink
mozillaGH-36 Update csp_replace to use new settings style
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanYoung committed Mar 6, 2020
1 parent 1c3340c commit ac9533d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csp/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def _wrapped(*a, **kw):
return decorator


def csp_replace(**kwargs):
replace = dict((k.lower().replace('_', '-'), v) for k, v in kwargs.items())
def csp_replace(csp_names=default, **kwargs):
replace = _policies_from_names_and_kwargs(csp_names, **kwargs)

def decorator(f):
@wraps(f)
Expand Down

0 comments on commit ac9533d

Please sign in to comment.