Subject: | XML::Atom::Server request_content empty under CGI |
XML::Atom::Server -> request_content returns empty when running as CGI.
This may be because CGI.pm has already read STDIN, so read() gets
nothing at line 141.
Potential fix is to delete lines 140 and 141, replace with:
my $method = $server->request_method;
$method = undef unless ($method eq 'POST' || $method eq 'PUT');
$server->{request_content} = $method ?
$server->{cgi}->param($method.'DATA') : '';