Subject: | Parser generates warnings when response starts with whitespace |
If a HTTP response contains no headers at all, HTTP::Parser gets
confused and generates a ton of warnings.
The following example occurs for me with http://amazon.com/
my $parser = HTTP::Parser->new;
$parser->add(<<'END_HTTP');
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
END_HTTP