From 7546c4f28b88d80a512bafc8f1c81268acd4ec18 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sun, 28 Dec 2008 11:52:57 +0100 Subject: [PATCH] Replace 404_handler with a direct call to tpl_handler. --- bin/werc.rc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/werc.rc b/bin/werc.rc index b107e23..584b6e1 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -99,8 +99,6 @@ fn dir_listing_handler { echo '' } -fn 404_handler { template `{get_lib_file 404.tpl} } - fn blog_dir_handler { blogDirs=$* tpl_handler lib/feeds/html.tpl @@ -196,7 +194,7 @@ fn select_handler { # File not found if not { - set_handler 404_handler $body + set_handler tpl_handler `{get_lib_file 404.tpl} dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER^' - '^$"HTTP_USER_AGENT echo 'Status: 404 Not Found' }