From 3a1e9fe0bc4919a9e528b91545711dfe00f17c6d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 16 Oct 2017 11:21:18 -0400 Subject: [PATCH] Fix typo in function name --- 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 cc248ba0..6ea4682e 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_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