From 0c4d254a9c3221c029be9bf2062c164de1cd06c4 Mon Sep 17 00:00:00 2001 From: Jason Bohrer Date: Fri, 1 Jul 2016 13:26:23 -0400 Subject: [PATCH] Changed tuple to list The comparison between parts[1:3] and ('', host) would return false because a list and a tuple were being compared. --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 9345f24c..998368fd 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1930,7 +1930,7 @@ class Auth(object): parts = next.split('/') if not ':' in parts[0]: return next - elif len(parts)>2 and parts[0].endswith(':') and parts[1:3]==('', host): + elif len(parts)>2 and parts[0].endswith(':') and parts[1:3]==['', host]: return next return None