Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix handling of static /pub/ files. - swerc - anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit 546b5f55efd1116a6e01df5e1f4d53d51cc70dc0
parent b12621d6fd726cec1acf05e60e8963c1409e8637
Author: [email protected] <unknown>
Date: Fri, 16 Jan 2009 01:08:54 +0100
Fix handling of static /pub/ files.
Diffstat:
M bin/werc.rc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -116,8 +116,8 @@ fn setup_handlers {
# Fallback static file handler
if not if(test -f $local_path)
static_file $local_path
- if not if(test -f pub/$req_path)
- static_file pub/$req_path
+ if not if(~ $req_path /pub/* && test -f .$req_path)
+ static_file .$req_path
# File not found
if not {
handler_body_main=(tpl_handler `{get_lib_file 404.tpl})
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.