Skip to content

Commit a41435c

Browse files
hyangahbradfitz
authored andcommitted
cmd/gitmirror: fix html in handleRoot
Change-Id: Ie0ab89caedae20dbb8c38cba1f872a7539fb48f8 Reviewed-on: https://go-review.googlesource.com/121437 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 7feb154 commit a41435c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/gitmirror/gitmirror.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,11 @@ func handleRoot(w http.ResponseWriter, r *http.Request) {
256256
reposMu.Lock()
257257
defer reposMu.Unlock()
258258
w.Header().Set("Content-Type", "text/html; charset=utf-8")
259-
fmt.Fprintf(w, "<html><body><pre>\a")
259+
fmt.Fprint(w, "<html><body><pre>")
260260
for _, r := range repos {
261261
fmt.Fprintf(w, "<a href='/debug/watcher/%s'>%s</a> - %s\n", r.name(), r.name(), r.statusLine())
262262
}
263+
fmt.Fprint(w, "</pre></body></html>")
263264
}
264265

265266
// shouldMirror reports whether the named repo should be mirrored from

0 commit comments

Comments
 (0)