ck 4 anni fa
parent
commit
2d54f1e572
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      handlers/HandlerBase.py

+ 4 - 1
handlers/HandlerBase.py

@@ -110,7 +110,10 @@ class BaseHandler(RequestHandler,DateUtils):
             if not Authorization:
                 return False
             print(Authorization)
-            origStr = Authorization.split(' ')[1][::-1]
+            try:
+                origStr = Authorization.split(' ')[1][::-1]
+            except:
+                return False
             if (len(origStr) % 3 == 1):
                 origStr += "=="
             elif (len(origStr) % 3 == 2):