Move app handler before default dir listing handler

This commit is contained in:
uriel 2008-12-24 12:18:05 +01:00
parent 25995097ed
commit b029c8774b

View File

@ -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