From: Marcus Ramberg Date: Wed, 30 Mar 2005 11:48:41 +0000 (+0000) Subject: fixes for content type. X-Git-Tag: v0.13~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=70a5ab0ab9abfef51d9248641bc68a973f8a3c99;p=catagits%2FCatalyst-View-TT.git fixes for content type. add manifest/meta fixes for content type. --- diff --git a/Changes b/Changes index 3a4023f..0ddb15a 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Catalyst::View::TT. +0.09 Wed Mar 29 13:47:00 2005 + - Don't override user-set charset/content-type + - Cleaned up the content-type we set. 0.08 Wed Mar 29 12:22:00 2005 - changed order of stash so stash can override c/base/name - fixed some typos diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..57b27b0 --- /dev/null +++ b/MANIFEST @@ -0,0 +1,9 @@ +Catalyst-View-TT-0.08.tar.gz +Changes +lib/Catalyst/Helper/View/TT.pm +lib/Catalyst/View/TT.pm +Makefile.PL +MANIFEST This list of files +META.yml +README +test.pl diff --git a/META.yml b/META.yml new file mode 100644 index 0000000..9c9c771 --- /dev/null +++ b/META.yml @@ -0,0 +1,13 @@ +# http://module-build.sourceforge.net/META-spec.html +#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# +name: Catalyst-View-TT +version: 0.08 +version_from: lib/Catalyst/View/TT.pm +installdirs: site +requires: + Catalyst: 4.00 + Template: 0 + Template::Timer: 0 + +distribution_type: module +generated_by: ExtUtils::MakeMaker version 6.17 diff --git a/lib/Catalyst/View/TT.pm b/lib/Catalyst/View/TT.pm index 317b388..115aa62 100644 --- a/lib/Catalyst/View/TT.pm +++ b/lib/Catalyst/View/TT.pm @@ -105,7 +105,8 @@ stored in C<< $c->response->output >>. sub process { my ( $self, $c ) = @_; - $c->res->headers->content_type('text/html;charset=utf8'); + $c->res->headers->content_type('text/html; charset=utf-8') + unless $c->res->headers->content_type(); my $output; my $name = $c->stash->{template} || $c->req->match; unless ($name) {