Junaidb commited on
Commit
2875331
·
verified ·
1 Parent(s): 37a3dad

Update components/middleware.py

Browse files
Files changed (1) hide show
  1. components/middleware.py +5 -4
components/middleware.py CHANGED
@@ -130,12 +130,13 @@ class x401Kit(BaseHTTPMiddleware):
130
  REQUIRED_SERVICE=None
131
 
132
 
133
- for protected_path,service_name in self.protected_paths.items():
 
134
 
135
- if request.url.path.startswith(protected_path):
136
 
137
- REQUIRED_SERVICE = service_name
138
- break
139
 
140
 
141
 
 
130
  REQUIRED_SERVICE=None
131
 
132
 
133
+ #for protected_path,service_name in self.protected_paths.items():
134
+ #for protected_path in protected_paths:
135
 
136
+ #if request.url.path.startswith(protected_path):
137
 
138
+ #REQUIRED_SERVICE = service_name
139
+ #break
140
 
141
 
142