mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00: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 changed files with 3 additions and 0 deletions
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.HandleFunc("/doc/codewalk/", codewalk)
|
||||
mux.HandleFunc("/search", search)
|
||||
mux.Handle("/robots.txt", fileServer)
|
||||
mux.HandleFunc("/", serveFile)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue