Introduction
Introduction Statistics Contact Development Disclaimer Help
Reorg debug printouts a bit. - swerc - anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit e83860eb0fe8a8d44fe3f3c646c00ba4f15f60c2
parent 6e9bf1d52439f1d46da6c4554d6dddafac97ada9
Author: [email protected] <unknown>
Date: Sat, 20 Dec 2008 13:31:19 +0100
Reorg debug printouts a bit.
Diffstat:
M bin/werc.rc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -225,10 +225,6 @@ if(test -f etc/initrc.local)
uri=`{echo -n $REQUEST_URI | sed 's/\?.*//; s/'^$forbidden_uri_chars^'//g; s/\…
ifs='/' { args=`{echo -n $uri} }
-
-if(! ~ $#debug 0)
- dprint ' ' $SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_USER_AGENT
-
# Hack: preload post data so we can access it from templates where cgi's stdin…
if(~ $REQUEST_METHOD POST) {
get_post_args
@@ -290,7 +286,8 @@ if(test -d $body) {
select_handler
-dprint $handler
+if(! ~ $#debug 0)
+ dprint ' '$"SERVER_NAME^$"REQUEST_URI' - '$"HTTP_USER_AGENT' - '$"REQUEST…
# Template/body selection
master_template=`{get_lib_file $master_template}
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.