Exit after doing a perm redirect, and some small style fixes
This commit is contained in:
parent
a010ba25eb
commit
64dc191a6d
1 changed files with 6 additions and 5 deletions
|
|
@ -125,7 +125,7 @@ fn genbody {
|
||||||
if not if(~ $#blogDirs 0) {
|
if not if(~ $#blogDirs 0) {
|
||||||
#echo 'Status: 404 Not Found\n\n' # should go before starting to print body
|
#echo 'Status: 404 Not Found\n\n' # should go before starting to print body
|
||||||
template.awk inc/404.tpl | rc $rcargs
|
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) {
|
if(! ~ $#blogDirs 0) {
|
||||||
|
|
@ -182,6 +182,7 @@ fn perm_redirect {
|
||||||
Location: '^$1^'
|
Location: '^$1^'
|
||||||
|
|
||||||
'
|
'
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirections and other preprocessing
|
# Redirections and other preprocessing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue