fixes for content type.
Marcus Ramberg [Wed, 30 Mar 2005 11:48:41 +0000 (11:48 +0000)]
add manifest/meta
fixes for content type.

Changes
MANIFEST [new file with mode: 0644]
META.yml [new file with mode: 0644]
lib/Catalyst/View/TT.pm

diff --git a/Changes b/Changes
index 3a4023f..0ddb15a 100644 (file)
--- 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 (file)
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 (file)
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
index 317b388..115aa62 100644 (file)
@@ -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) {