diff --git a/bin/werc.rc b/bin/werc.rc index bbabec0..2ab2093 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -123,13 +123,13 @@ fn werc_exec_request { for(h in $extraHttpHeaders) echo $h echo 'Content-Type: '^$http_content_type - if(~ $REQUEST_METHOD HEAD) - exit echo # End of HTTP headers if(! ~ $#debug 0) dprint $"SERVER_NAME^$"REQUEST_URI - $"HTTP_USER_AGENT - $"REQUEST_METHOD - $"handler_body_main - $"master_template + if(~ $REQUEST_METHOD HEAD) + exit template $headers $master_template | awk_buffer echo $res_tail