--- trunk/lib/Frey/Server.pm 2008/11/20 13:57:38 477 +++ trunk/lib/Frey/Server.pm 2008/11/25 17:15:18 519 @@ -70,7 +70,7 @@ qq| - + Refresh $url @@ -112,6 +112,7 @@ # shared run params my $run = { request_url => $req->request->url, + debug => 1, }; if ( @@ -134,6 +135,7 @@ my $class = rest2class $1; warn "# run $path -> $class $2"; $run->{format} = $3 if $3; + $params{request_url} = $req->request->url; $f = Frey::Run->new( class => $class, params => \%params, run => $2, %$run ); } elsif ( $path =~ m{/([^/]+)/?$} @@ -146,8 +148,13 @@ } if ( $f ) { - push @{ $f->status }, { req => $req }; - $req->print( $f->html ); + $f->clean_status; + $f->add_status( { request => $req } ); + warn "## status ", dump( map { keys %$_ } $f->status ); + my $html = $f->html; + die "no html output" unless $html; + warn "## html ",length($html)," bytes"; + $req->print( "$html\n" ); } else { warn "# can't call request on nothing!"; }