getMimeType returns that string as a default, so the OR will never

be triggered.
This commit is contained in:
Colin Kuskie 2007-04-06 04:59:13 +00:00
parent 2d9649dc10
commit 88a08fd228

View file

@ -263,7 +263,7 @@ sub sendHeader {
$request->headers_out->set(Location => $self->getRedirectLocation);
$request->status(301);
} else {
$request->content_type($self->getMimeType || "text/html; charset=UTF-8");
$request->content_type($self->getMimeType);
my $cacheControl = $self->getCacheControl;
my $date = ($userId eq "1") ? $datetime->epochToHttp($self->getLastModified) : $datetime->epochToHttp;
# under these circumstances, don't allow caching