Exit after doing a perm redirect, and some small style fixes

This commit is contained in:
Uriel 2008-07-08 00:23:00 +02:00
parent a010ba25eb
commit 64dc191a6d

View file

@ -125,7 +125,7 @@ fn genbody {
if not if(~ $#blogDirs 0) {
#echo 'Status: 404 Not Found\n\n' # should go before starting to print body
template.awk inc/404.tpl | rc $rcargs
dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER
dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER^' - '^$HTTP_USER_AGENT
}
if(! ~ $#blogDirs 0) {
@ -182,6 +182,7 @@ fn perm_redirect {
Location: '^$1^'
'
exit
}
# Redirections and other preprocessing