]> Cypherpunks repositories - gostls13.git/commitdiff
misc/dashboard: set charset utf-8 on build log downloads
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 3 Oct 2012 15:16:27 +0000 (08:16 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 3 Oct 2012 15:16:27 +0000 (08:16 -0700)
Fixes #4187

R=golang-dev, dave, minux.ma
CC=golang-dev
https://golang.org/cl/6587071

misc/dashboard/app/build/handler.go

index 5d1e3094cf4ab36a39f3b053554c76cfd5b6d19f..1a1118641a5b5792e47958a4629228dabd3b4e13 100644 (file)
@@ -322,7 +322,7 @@ func resultHandler(r *http.Request) (interface{}, error) {
 // logHandler displays log text for a given hash.
 // It handles paths like "/log/hash".
 func logHandler(w http.ResponseWriter, r *http.Request) {
-       w.Header().Set("Content-type", "text/plain")
+       w.Header().Set("Content-type", "text/plain; charset=utf-8")
        c := appengine.NewContext(r)
        hash := r.URL.Path[len("/log/"):]
        key := datastore.NewKey(c, "Log", hash, 0, nil)