We must not drop the leading slash in the URI. This
regression was introduced when we dropped Plack::Request
dependency.
my $uri = $env->{REQUEST_URI};
$uri =~ s/\?.+\z//; # no query string
my @uri = split(m!/+!, $uri);
- shift @uri; # leading slash
my @extra = @{$req->{extra}};
while (@uri && @extra && $uri[-1] eq $extra[-1]) {
pop @uri;
$res = $cb->(GET($req . '/foo.txt'));
is($res->code, 200, 'got 200');
$body = dechunk($res);
+ like($body, qr{\bhref="http://[^/]+/test\.git/}, 'hrefs OK');
SKIP: {
skip 'XML::Feed missing', 2 unless $have_xml_feed;
my $p = XML::Feed->parse(\$body);