From 2c21ba4ae75846f224670fca3d1141c96c3c62b3 Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 3 Mar 2009 20:24:25 +0000 Subject: [PATCH] Exit after printing http headers if request method is HEAD. --- lib/headers.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/headers.tpl b/lib/headers.tpl index b869ea8..f1dac50 100644 --- 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