2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Correct syntax error

The prior commit had a grave syntax error.
This commit is contained in:
Jarrod Johnson 2017-10-16 10:30:02 -04:00
parent b7b26a1069
commit f1f6c3b066

View File

@ -226,7 +226,7 @@ def _csrf_exempt(path):
def _csrf_valid(env, session):
# This could be simplified into a statement, but this is more readable
# to have it broken out
if (env['REQUEST_METHOD'] == 'GET' and _csrf_exmept(env['PATH_INFO']):
if (env['REQUEST_METHOD'] == 'GET' and _csrf_exmept(env['PATH_INFO'])):
# Provide a web client a safe hook to request the CSRF token
# This means that we consider GET of /sessions/current/info to be
# a safe thing to inflict via CSRF, since CORS should prevent