Subject: | content lenght is not set properly |
In HTTP.pm, in function state_Send, the content length is always set because the field is mispelled in the if.
if (!($response->header('Content-Lenth')) && !($response->streaming())) {
$response->header('Content-Length',length($response->content));
}
"Lenth" should be "Length".
Also, shouldn't a "use bytes;" be added before the call to length(). This cause for mislengthed content when UTF8 is involved.
-Mathieu