Spaces:
Sleeping
Sleeping
Update auth.lua
Browse files
auth.lua
CHANGED
@@ -5,7 +5,8 @@ return function(req, res, go)
|
|
5 |
local pass = req.headers["authorization"]
|
6 |
-- Just for Hugging Face
|
7 |
if req.path == '/' then
|
8 |
-
|
|
|
9 |
end
|
10 |
|
11 |
if pass ~= config.server.password then
|
|
|
5 |
local pass = req.headers["authorization"]
|
6 |
-- Just for Hugging Face
|
7 |
if req.path == '/' then
|
8 |
+
res.code = 200
|
9 |
+
return
|
10 |
end
|
11 |
|
12 |
if pass ~= config.server.password then
|