diff options
author | Eric Wong <e@80x24.org> | 2017-02-19 19:01:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-19 19:04:03 +0000 |
commit | 4af278501461f91844da1e2ffb82cf8571238d02 (patch) | |
tree | e9cec31f3fee5a30ab4d16aa371c97850815a905 /t | |
parent | a2d5afa6a83ab8f97dd344d72be537952255b3e8 (diff) | |
download | public-inbox-4af278501461f91844da1e2ffb82cf8571238d02.tar.gz |
We do not need specialized trailing slashes if we break URL compatibility from cgit, here. Removing trailing (and redundant) slashes improves our hit rates with across both server-side (varnish, squid) and client-side (browser) layers.
Diffstat (limited to 't')
-rw-r--r-- | t/repobrowse_git_raw.t | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/t/repobrowse_git_raw.t b/t/repobrowse_git_raw.t index 2048d82a..aefe88c7 100644 --- a/t/repobrowse_git_raw.t +++ b/t/repobrowse_git_raw.t @@ -14,12 +14,6 @@ test_psgi($test->{app}, sub { like($noslash_body, qr{href="dir/dur">dur</a></li>}, 'path ok w/o slash'); - my $slash = $req . '/'; - my $r2 = $cb->(GET($slash)); - is(200, $r2->code, 'got 200 response from dir'); - my $slash_body = dechunk($r2); - like($slash_body, qr{href="\./dur\">dur</a></li>}, 'path ok w/ slash'); - $req = 'http://example.com/test.git/raw/master/foo.txt'; my $blob = $cb->(GET($req)); like($blob->header('Content-Type'), qr!\Atext/plain\b!, |