]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: serve robots.txt raw
authorAndrew Gerrand <adg@golang.org>
Fri, 18 Feb 2011 18:46:20 +0000 (05:46 +1100)
committerAndrew Gerrand <adg@golang.org>
Fri, 18 Feb 2011 18:46:20 +0000 (05:46 +1100)
R=gri, niemeyer, rsc, r2, r
CC=golang-dev
https://golang.org/cl/4188063

robots.txt [new file with mode: 0644]
src/cmd/godoc/godoc.go

diff --git a/robots.txt b/robots.txt
new file mode 100644 (file)
index 0000000..1f53798
--- /dev/null
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /
index c91dc33dbbc36e747f973b95300bca9f61cdde11..c0943cd60809f425491e0929d01c340fad086108 100644 (file)
@@ -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)
 }