Skip to content

Commit

Permalink
godoc: serve robots.txt raw
Browse files Browse the repository at this point in the history
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 06a923a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
1 change: 1 addition & 0 deletions src/cmd/godoc/godoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 06a923a

Please sign in to comment.