internal/frontend: delete redirect for "/mod/std" in serveDetails
All requests to /mod/<path> are already being redirected to /<path>.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -78,10 +78,6 @@ func (s *Server) serveDetails(w http.ResponseWriter, r *http.Request, ds interna
// (This is what godoc.org does.)
http.Redirect(w, r, "https://golang.org/doc/articles/c_go_cgo.html", http.StatusMovedPermanently)
return nil
- case "/mod/std":
- // The stdlib module page is hosted at "/std".
- http.Redirect(w, r, "/std", http.StatusMovedPermanently)
- return nil
}
urlInfo, err := extractURLPathInfo(r.URL.Path)
