Subject: | Content-Length from Apache::RPC::Server is insufficient when given UTF-8 data |
I'm using Apache::RPC::Server (version 1.27) and this line does not seem
to behave properly:
$r->set_content_length(length $content);
This will, given an Unicode character string, set Content-Length to be
the number of characters instead of the number of bytes/octets.
For my use, I've replaced length with bytes::length and it seems like a
safe and easy fix.
Distribution name and version Apache::RPC::Server-1.27
Perl version 5.8.4
Operating System: Solaris 5.10