--- trunk/lib/Frey/Mojo.pm 2008/12/10 13:56:43 789 +++ trunk/lib/Frey/Mojo.pm 2008/12/10 14:22:59 790 @@ -7,6 +7,7 @@ use MojoX::Dispatcher::Static; +use lib 'lib'; use Frey::Server; use Data::Dump qw/dump/; @@ -52,7 +53,7 @@ warn "# url $url params ",dump($params); - $server->request( $url, $params ); # fetch body + my $content_type = $server->request( $url, $params ); # fetch body =for developer @@ -67,7 +68,7 @@ =cut $tx->res->code(200); - $tx->res->headers->content_type('text/html'); + $tx->res->headers->content_type( $content_type ); $tx->res->body( $body ); warn dump( $tx->res->headers );