swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 869167256d9dd5d6aa55dd981d4ee94270535b1b
parent ab71856bbe299184c949f020f3fa6bdf7b5080c7
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Wed, 24 Dec 2008 12:18:05 +0100

Move app handler before default dir listing handler
Diffstat:
Mbin/werc.rc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/werc.rc b/bin/werc.rc @@ -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