? $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} );
}
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};
}