Bug#745823: libwww-perl: an https request with iso-8859-1 headers, chunked transfer and data with utf8 bit on is corrupted.
John Hughes
john at calva.com
Sun Apr 27 08:35:59 UTC 2014
On 26/04/14 18:49, John Hughes wrote:
>
> if (ref($content_ref) eq 'CODE') {
> my $buf = &$content_ref();
> $buf = "" unless defined($buf);
> + utf8::downgrade ($buf);
> $buf = sprintf "%x%s%s%s", length($buf), $CRLF, $buf, $CRLF
> if $chunked;
> substr($buf, 0, 0) = $req_buf if $req_buf
>
>
>
But that's the wrong place to fix it. The bug is realy in
$socket->syswrite, aka Crypt::SSLeay::Conn::write.
That's where the bug should be fixed.
More information about the pkg-perl-maintainers
mailing list