Change log for Web::Simple
+ - Update Plack usage to call ::Handler:: classes not ::Server::
- Assume FastCGI mode if STDIN is a socket (works some places env vars fail)
- Change CLI mode to print status line and headers to STDERR and content
to STDOUT so that './myapp /foo.html >foo.html' works sanely
sub _run_cgi {
my $self = shift;
- require Plack::Server::CGI;
- Plack::Server::CGI->run($self->to_psgi_app);
+ require Plack::Handler::CGI;
+ Plack::Handler::CGI->new->run($self->to_psgi_app);
}
sub _run_fcgi {
my $self = shift;
- require Plack::Server::FCGI;
- Plack::Server::FCGI->run($self->to_psgi_app);
+ require Plack::Handler::FCGI;
+ Plack::Handler::FCGI->new->run($self->to_psgi_app);
}
sub to_psgi_app {