Compare commits
2 commits
6e3705a6df
...
08f17f812b
Author | SHA1 | Date | |
---|---|---|---|
08f17f812b | |||
6e9f673d91 |
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue