ck 4 năm trước cách đây
mục cha
commit
f2965ea2ed
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      handlers/HandlerBase.py

+ 2 - 0
handlers/HandlerBase.py

@@ -107,6 +107,8 @@ class BaseHandler(RequestHandler,DateUtils):
             return True
         else:
             Authorization = self.request.headers.get('Authorization')
+            if not Authorization:
+                return False
             print(Authorization)
             b = str(float(str(base64.b64decode(Authorization[::-1].encode('utf-8')),'utf-8'))*int(self.now.day))[:10]