last change broke css serving
groditi [Tue, 12 Feb 2008 22:54:16 +0000 (22:54 +0000)]
lib/Reaction/UI/Window.pm

index 6143f90..a3c9708 100644 (file)
@@ -56,9 +56,10 @@ class Window which {
   implements flush_view => as {
     my ($self) = @_;
     my $res = $self->ctx->res;
-    $res->content_type($self->content_type);
+    #$res->content_type($self->content_type);
     return if $res->status =~ /^3/ || length($res->body);
     $res->body($self->view->render_window($self));
+    $res->content_type($self->content_type);
   };
 
   # required by old Renderer::XHTML