CtsTestServer: Add support for an alternate redirect route
Doing redirects from /redirect/assets/file to /assets/file by
stripping path segments is too symmetrical for some tests.
For instance, a relative reference "otherfile", relative to
/assets/file (loaded via /redirect/assets/file) might incorrectly
be loaded from /redirect/assets/otherfile which will work only
by coincidence. In general there's no such guarantee that such
redirects map any pathname symmetrically.
Cherrypicked from https://android-review.googlesource.com/#/c/81856/
1 file changed