Permalink
Browse files

godoc: serve robots.txt raw

R=gri, niemeyer, rsc, r2, r
CC=golang-dev
https://golang.org/cl/4188063
  • Loading branch information...
adg committed Feb 18, 2011
1 parent 3173821 commit 06a923ada04606943d07cb8bd0cb387eb696272c
Showing with 3 additions and 0 deletions.
  1. +2 −0 robots.txt
  2. +1 −0 src/cmd/godoc/godoc.go
View
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
View
@@ -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)
}

0 comments on commit 06a923a

Please sign in to comment.