X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=fdb1b8659a493d76daad16232a65cf882ae36065;hb=bd6da5dd49b9a50d49098f97278e4b440cb17bd9;hp=6b40b7052b5ee5e039a61c90c283b3a86340ec21;hpb=650450caf089b65793c46ff38aa696337f4005df;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 6b40b70..fdb1b86 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -582,7 +582,11 @@ sub handler_guts { } # less frequent path - perhaps output has been set to an error message - return OK if $self->output; + if ($self->output) { + $self->{content_type} ||= $self->__get_mime_type(); + $self->{document_encoding} ||= "utf-8"; + return OK; + } # normal path - no output has been generated yet my $processed_view_ok = $self->__call_process_view; @@ -636,6 +640,7 @@ sub __setup_plain_template my ($self) = @_; # It's just a plain template + $self->build_form_elements(0); $self->model_class(undef); unless ($self->template) {