commit d84eb85e3ade702b3809887b112675abde41faff
parent cdad117e51e9176d429ede1fc5dd7f08021ea904
Author: uriel@soma <unknown>
Date: Tue, 3 Mar 2009 20:24:25 +0000
Exit after printing http headers if request method is HEAD.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/headers.tpl b/lib/headers.tpl
@@ -1,5 +1,7 @@
% for(h in $extraHttpHeaders) echo $h
Content-Type: text/html
+% if(~ $REQUEST_METHOD HEAD)
+% exit
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"