From: cjwatson <> Date: Mon, 14 Apr 2003 09:39:20 +0000 (-0800) Subject: [project @ 2003-04-14 02:39:20 by cjwatson] X-Git-Tag: release/2.6.0~933 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3aee97988d62630d1b5bd55780fbbb06dced1945;p=debbugs.git [project @ 2003-04-14 02:39:20 by cjwatson] Don't optimize HEAD requests for attachment or mbox downloads, since their content-types differ. --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 6e003370..f7d5c98d 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -34,7 +34,7 @@ my $mbox = ($param{'mbox'} || 'no') eq 'yes'; my $buglog = buglog($ref); -if ($ENV{REQUEST_METHOD} eq 'HEAD') { +if ($ENV{REQUEST_METHOD} eq 'HEAD' and not defined($att) and not $mbox) { print "Content-Type: text/html\n"; my @stat = stat $buglog; if (@stat) {