From: Brad Fitzpatrick Date: Wed, 3 Oct 2012 15:16:27 +0000 (-0700) Subject: misc/dashboard: set charset utf-8 on build log downloads X-Git-Tag: go1.1rc2~2266 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=256daf2c85c0277298d7066e5b24c137ef332aa5;p=gostls13.git misc/dashboard: set charset utf-8 on build log downloads Fixes #4187 R=golang-dev, dave, minux.ma CC=golang-dev https://golang.org/cl/6587071 --- diff --git a/misc/dashboard/app/build/handler.go b/misc/dashboard/app/build/handler.go index 5d1e3094cf..1a1118641a 100644 --- a/misc/dashboard/app/build/handler.go +++ b/misc/dashboard/app/build/handler.go @@ -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)