mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Use proper ngx code for "access denied" page.
This commit is contained in:
parent
a938b6f4af
commit
ad63afbfad
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ function serve(uri)
|
|||
|
||||
-- Access to directory root: forbidden
|
||||
if string.ends(rel_path, "/") then
|
||||
return ngx.exit(403)
|
||||
return ngx.exit(ngx.HTTP_FORBIDDEN)
|
||||
end
|
||||
|
||||
-- Try to get file content
|
||||
|
|
Loading…
Reference in a new issue