in reply to New Plack App (with HTML::Template & file upload) help
You could help us help you better by posting the relevant part of your code. Most likely, you have in your request handler something like:
sub handle_request { ... my $html = '<html><head>...</html>'; ... return [ 200, ['Content-Type','text/html'], $html] };
But that is not how the PSGI protocol works. It wants you to return an array reference:
sub handle_request { ... my $html = '<html><head>...</html>'; ... return [ 200, ['Content-Type','text/html'], [$html]] };
|
|---|