X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FXMLPage.pm;h=68fd96b246b078f333d9dcd770fc4a432a0c26df;hb=add4b96ab08441ea81a200af0014a3016df9e1d0;hp=2a876a4cbff879584af9340606726bedb4e5f183;hpb=571b019af4b9e3e051447f82135bb630a4fb4db8;p=ndwebbie.git diff --git a/ND/Web/XMLPage.pm b/ND/Web/XMLPage.pm index 2a876a4..68fd96b 100644 --- a/ND/Web/XMLPage.pm +++ b/ND/Web/XMLPage.pm @@ -79,7 +79,8 @@ sub render : method { $self->process; - my $type = 'text/html'; + my $type = 'application/xhtml+xml'; + $type = 'text/html' if $self->{USER_AGENT} =~ /MSIE/; my $body; if ($self->{XML}){ $type = 'text/xml'; @@ -125,11 +126,6 @@ sub render : method { my $output = $template->output; print header(-type=> $type, -charset => 'utf-8', -Content_Length => length $output); print $output; - - - $DBH->rollback unless $DBH->{AutoCommit}; - $DBH->disconnect; - }; 1;