$self->ar($ar);
}
-=item parse_location
+=item warn
=cut
return;
}
-=item warn
+
+=item parse_location
=cut
for (keys %headers) {
$self->headers_in->set($_, $headers{$_});
}
+
my $path = $self->ar->uri;
my $loc = $self->ar->location;
+
{
no warnings 'uninitialized';
$path .= '/' if $path eq $loc;
- $path =~ s/^($loc)?\///;
+ if ($loc =~ /\/$/) {
+ $path =~ s/^($loc)?//;
+ } else {
+ $path =~ s/^($loc)?\///;
+ }
}
+
$self->path($path);
$self->parse_path;
$self->parse_args;