Subject: | Server dies after sending first HTTP-Response |
After updating POE to the latest Version (0.3401) the HTTP-Server dies
after serving the first Request with
Can't coerce array into hash at [...]/POE/Component/Server/HTTP.pm line 362.
Could be reproduced with the attached test.pl (from pod)
Subject: | test.pl |
#!/usr/bin/env perl
use POE::Component::Server::HTTP;
use HTTP::Status;
my $aliases = POE::Component::Server::HTTP->new(
Port => 8000,
ContentHandler => {
'/' => \&handler,
},
Headers => { Server => 'My Server' },
);
sub handler {
my ($request, $response) = @_;
$response->code(RC_OK);
$response->content("Hi, you fetched ". $request->uri);
return RC_OK;
}
POE::Kernel->run();