]> git.decadent.org.uk Git - maypole.git/commitdiff
Applied length patch for utf8.
authorMarcus Ramberg <mramberg@cpan.org>
Sun, 14 Nov 2004 22:13:04 +0000 (22:13 +0000)
committerMarcus Ramberg <mramberg@cpan.org>
Sun, 14 Nov 2004 22:13:04 +0000 (22:13 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@281 48953598-375a-da11-a14b-00016c27c3ee

lib/Apache/MVC.pm
lib/CGI/Maypole.pm

index 0f91e9a853d7c3deb1eefd34cce8371f0eeb66eb..645c046349e63957ac809b4d44ca78b48a56ad65 100644 (file)
@@ -47,7 +47,7 @@ sub send_output {
         ? $r->{content_type} . "; charset=" . $r->{document_encoding}
         : $r->{content_type}
     );
-    $r->{ar}->headers_out->set( "Content-Length" => length $r->{output} );
+    $r->{ar}->headers_out->set( "Content-Length" => do { use bytes; length $r->{output} } );
     APACHE2 || $r->{ar}->send_http_header;
     $r->{ar}->print( $r->{output} );
 }
index 345b68ee9c0e577f4ffff06780b07b40dafe0f7e..ddcf22240019251a6f11d035312aeba3adc262c4 100644 (file)
@@ -43,7 +43,7 @@ sub send_output {
     print $r->{cgi}->header(
         -type           => $r->{content_type},
         -charset        => $r->{document_encoding},
-        -content_length => length $r->{output},
+        -content_length => do { use bytes; length $r->{output} }, 
     );
     print $r->{output};
 }