cmd/gitmirror: fix html in handleRoot
Change-Id: Ie0ab89caedae20dbb8c38cba1f872a7539fb48f8
Reviewed-on: https://go-review.googlesource.com/121437
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/cmd/gitmirror/gitmirror.go b/cmd/gitmirror/gitmirror.go
index b8df1fe..6ad8951 100644
--- a/cmd/gitmirror/gitmirror.go
+++ b/cmd/gitmirror/gitmirror.go
@@ -256,10 +256,11 @@
reposMu.Lock()
defer reposMu.Unlock()
w.Header().Set("Content-Type", "text/html; charset=utf-8")
- fmt.Fprintf(w, "<html><body><pre>\a")
+ fmt.Fprint(w, "<html><body><pre>")
for _, r := range repos {
fmt.Fprintf(w, "<a href='/debug/watcher/%s'>%s</a> - %s\n", r.name(), r.name(), r.statusLine())
}
+ fmt.Fprint(w, "</pre></body></html>")
}
// shouldMirror reports whether the named repo should be mirrored from