forked from rDrama/rDrama
fix 500 error
parent
54b49d374c
commit
84874ab3ff
|
@ -339,7 +339,7 @@ def donate(v):
|
||||||
@limiter.limit("10/minute;50/day")
|
@limiter.limit("10/minute;50/day")
|
||||||
def csp_violations():
|
def csp_violations():
|
||||||
content = request.get_json(force=True)
|
content = request.get_json(force=True)
|
||||||
content = str(json.dumps(content, indent=4, sort_keys=True), flush=True)
|
content = str(json.dumps(content, indent=4, sort_keys=True))
|
||||||
if f'"source-file": "{SITE_FULL}' in content:
|
if f'"source-file": "{SITE_FULL}' in content:
|
||||||
print(content)
|
print(content, flush=True)
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in New Issue