2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix typo in function name

This commit is contained in:
Jarrod Johnson 2017-10-16 11:21:18 -04:00
parent bb03e4a961
commit 3a1e9fe0bc

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_exempt(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