shithub: werc

Download patch

ref: bda06692d88e57a5360f55e6059cef11e9e5cf8c
parent: ef4bdbf6c45e1888f725a7240b2e150fd35815b2
author: sl <uriel@engel.se.cat-v.org>
date: Tue Mar 3 15:24:25 EST 2009

Exit after printing http headers if request method is HEAD.

--- 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"