mirror of
https://github.com/golang/go
synced 2024-11-05 15:56:12 -07:00
godoc: forward /pkg/C links to /cmd/cgo.
Fixes golang/go#5651. R=bradfitz CC=golang-codereviews https://golang.org/cl/58660043
This commit is contained in:
parent
2ca2bfc172
commit
f97ec06d2c
@ -35,6 +35,7 @@ func registerHandlers(pres *godoc.Presentation) {
|
|||||||
http.Handle("/doc/play/", pres.FileServer())
|
http.Handle("/doc/play/", pres.FileServer())
|
||||||
http.Handle("/robots.txt", pres.FileServer())
|
http.Handle("/robots.txt", pres.FileServer())
|
||||||
http.Handle("/", pres)
|
http.Handle("/", pres)
|
||||||
|
http.Handle("/pkg/C/", redirect.Handler("/cmd/cgo/"))
|
||||||
redirect.Register(nil)
|
redirect.Register(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user