use strict;
use warnings;
-our $VERSION = '2.04';
+our $VERSION = '2.05';
sub run {
my $self = shift;
my $loc = $self->{cgi}->url( -absolute => 1 );
no warnings 'uninitialized';
$self->{path} =~ s/^($loc)?\///;
+ $self->{path} .= '/' if $self->{path} eq $loc;
$self->parse_path;
$self->parse_args;
}
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};
}