Add backend tests for blob redirects
Created by: felixfbecker
@unknwon offered to write these for #10193
From | To |
---|---|
/repo/-/tree/some/file.go |
/repo/-/blob/some/file.go |
/repo/-/blob/some/dir |
/repo/-/tree/some/dir |
/repo@rev/-/tree/some/file.go |
/repo@rev/-/blob/some/file.go |
/repo@rev/-/blob/some/dir |
/repo@rev/-/tree/some/dir |
/repo/-/tree |
/repo |
/repo/-/blob |
/repo |
/repo@rev/-/tree |
/repo@rev |
/repo@rev/-/blob |
/repo@rev |
/repo/-/tree/some/dir |
No redirect |
/repo/-/blob/some/file.go |
No redirect |
/repo |
No redirect |
I assume that trailing slash variants don't need to be tested because we globally redirect trailing slashes to non-trailing slashes (before this handler is called).