mirror of
https://github.com/golang/go
synced 2024-11-21 18:34:44 -07:00
godoc: serve robots.txt raw
R=gri, niemeyer, rsc, r2, r CC=golang-dev https://golang.org/cl/4188063
This commit is contained in:
parent
3173821a8c
commit
06a923ada0
2
robots.txt
Normal file
2
robots.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
@ -91,6 +91,7 @@ func registerPublicHandlers(mux *http.ServeMux) {
|
|||||||
mux.Handle(pkgHandler.pattern, &pkgHandler)
|
mux.Handle(pkgHandler.pattern, &pkgHandler)
|
||||||
mux.HandleFunc("/doc/codewalk/", codewalk)
|
mux.HandleFunc("/doc/codewalk/", codewalk)
|
||||||
mux.HandleFunc("/search", search)
|
mux.HandleFunc("/search", search)
|
||||||
|
mux.Handle("/robots.txt", fileServer)
|
||||||
mux.HandleFunc("/", serveFile)
|
mux.HandleFunc("/", serveFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user