From f1f6c3b066366b6e5ef979b8a0508a46e87caec3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 16 Oct 2017 10:30:02 -0400 Subject: [PATCH] Correct syntax error The prior commit had a grave syntax error. --- confluent_server/confluent/httpapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index 0a5f1e4d..cc248ba0 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -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