Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/website: unable to use custom path without trailing slash ("/") in an HTML file, if it is named index.html #40665
What version of Go are you using (
The redirect to drop index.html must be done using r.URL.Path, not relpath, because those might differ. Cutting len("index.html") bytes off a string that doesn't end in index.html is incorrect. While we're here, silence an annoying log print during go test. For golang/go#40665. Change-Id: I36553b041f53eab9c42da6b77184e90800a97e92 Reviewed-on: https://go-review.googlesource.com/c/tools/+/251080 Run-TryBot: Russ Cox <email@example.com> Reviewed-by: Dmitri Shuralyov <firstname.lastname@example.org>