Move app handler before default dir listing handler
This commit is contained in:
parent
e2ee3bdf6e
commit
0ba3e6c1d8
1 changed files with 4 additions and 4 deletions
|
|
@ -190,14 +190,14 @@ fn select_handler {
|
|||
if not if(test -f $body.txt)
|
||||
set_handler txt_handler $body.txt
|
||||
|
||||
# Dir listing
|
||||
if not if(~ $body */index)
|
||||
set_handler dir_listing_handler $body
|
||||
|
||||
# Apps
|
||||
if not if(! ~ $#enabled_apps 0 && select_apps)
|
||||
set_handler app_handler
|
||||
|
||||
# Dir listing
|
||||
if not if(~ $body */index)
|
||||
set_handler dir_listing_handler $body
|
||||
|
||||
# File not found
|
||||
if not {
|
||||
set_handler 404_handler $body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue