Compare commits

..

2 commits

Author SHA1 Message Date
08f17f812b log when config is found 2025-05-02 18:47:58 -03:00
6e9f673d91 return 401 2025-05-02 18:47:54 -03:00
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ local function findConfigFile()
local possible_config_path = config_directory .. "/" .. "conf.lua" local possible_config_path = config_directory .. "/" .. "conf.lua"
local fd, res = io.open(possible_config_path, "rb") local fd, res = io.open(possible_config_path, "rb")
if fd then if fd then
log('config found at ' .. possible_config_path)
local data = fd:read("*a") local data = fd:read("*a")
fd:close() fd:close()
return data return data

View file

@ -12,7 +12,7 @@ local function searchCallback(cfg, _ctx)
local authheader = h["authorization"] local authheader = h["authorization"]
if authheader == nil then if authheader == nil then
return 400, "requires authentication" return 401, "requires authentication"
else else
return nil return nil
end end