legit

Fork of https://git.icyphox.sh/legit

Redirect to URL without trailing slash The new router does not care trailing slash. However it's better to canonicalize to one with trailing slash or without the one for indexing, caching, and other various reasons. The change to test file is net/http.Get being "smart" and clean Location header so it'll be resolved to "/foo" on client side (= test code).

Changes

2 changed files (+8/-1)