Skip Menu |

This queue is for tickets about the POE-Component-Server-HTTP CPAN distribution.

Report information
The Basics
Id: 11349
Status: resolved
Priority: 0/
Queue: POE-Component-Server-HTTP

People
Owner: Nobody in particular
Requestors: mlongtin [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.06
Fixed in: (no value)



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