[Rt-commit] r2483 - in HTTP-Server-Simple: . lib/HTTP/Server
jesse at bestpractical.com
jesse at bestpractical.com
Mon Mar 21 11:03:11 EST 2005
Author: jesse
Date: Mon Mar 21 11:03:11 2005
New Revision: 2483
Modified:
HTTP-Server-Simple/ (props changed)
HTTP-Server-Simple/lib/HTTP/Server/Simple.pm
Log:
r9494 at hualien: jesse | 2005-03-21 23:59:59 +0800
* Default to raw-encoded output, rather than unspecified
Modified: HTTP-Server-Simple/lib/HTTP/Server/Simple.pm
==============================================================================
--- HTTP-Server-Simple/lib/HTTP/Server/Simple.pm (original)
+++ HTTP-Server-Simple/lib/HTTP/Server/Simple.pm Mon Mar 21 11:03:11 2005
@@ -149,6 +149,11 @@
*STDIN = *Remote;
*STDOUT = *Remote;
+
+ # Default to unencoded, raw data out.
+ # if you're sending utf8 and latin1 data mixed, you may need to override this
+ binmode STDOUT, ':raw';
+
my $remote_sockaddr = getpeername(STDIN);
my ( undef, $iaddr ) = sockaddr_in($remote_sockaddr);
More information about the Rt-commit
mailing list