From 46cbf80acf0276367da7b4701a1e27ab2d93a279 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 3 Oct 2012 08:16:27 -0700 Subject: misc/dashboard: set charset utf-8 on build log downloads Fixes issue 4187 R=golang-dev, dave, minux.ma CC=golang-dev http://codereview.appspot.com/6587071 --- misc/dashboard/app/build/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/dashboard') diff --git a/misc/dashboard/app/build/handler.go b/misc/dashboard/app/build/handler.go index 5d1e3094c..1a1118641 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) -- cgit v1.2.1