sub process {
my ( $self, $r ) = @_;
- my $status = $self->template($r);
- return $self->error($r) if $status != OK;
$r->{content_type} ||= "text/html";
$r->{document_encoding} ||= "utf-8";
+ my $status = $self->template($r);
+ return $self->error($r) if $status != OK;
return OK;
}