From 1df60ceb73a5372e85e6318528ba7029ad887743 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 27 Feb 2016 13:23:02 -0500 Subject: [PATCH] Rename '/session/logout' to '/sessions/current/logout' Have room for a future where a user may list and disconnect other sessions. --- confluent_server/confluent/httpapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index ec3c8e4a..c7a35556 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -208,7 +208,7 @@ def _authorize_request(env, operation): if 'confluentsessionid' in cc: sessionid = cc['confluentsessionid'].value if sessionid in httpsessions: - if env['PATH_INFO'] == '/session/logout': + if env['PATH_INFO'] == '/sessions/current/logout': targets = [] for mythread in httpsessions[sessionid]['inflight']: targets.append(mythread) @@ -222,7 +222,7 @@ def _authorize_request(env, operation): name, element=None, skipuserobj=httpsessions[sessionid]['skipuserobject']) if (not authdata) and 'HTTP_AUTHORIZATION' in env: - if env['PATH_INFO'] == '/session/logout': + if env['PATH_INFO'] == '/sessions/current/logout': return ('logout',) name, passphrase = base64.b64decode( env['HTTP_AUTHORIZATION'].replace('Basic ', '')).split(':', 1)