forked from rDrama/rDrama
no step on jc
parent
aa272729f1
commit
775f0d0717
|
@ -127,6 +127,13 @@ def teardown_request(error):
|
||||||
del g.db
|
del g.db
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
|
|
||||||
|
@limiter.request_filter
|
||||||
|
def no_step_on_jc():
|
||||||
|
if request:
|
||||||
|
key = environ.get("NO_STEP_ON_JC", "")
|
||||||
|
if key and key == request.headers.get("X-No-Step", ""): return True
|
||||||
|
return False
|
||||||
|
|
||||||
if "load_chat" in argv:
|
if "load_chat" in argv:
|
||||||
from files.routes.chat import *
|
from files.routes.chat import *
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue