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
This commit is contained in:
Brad Fitzpatrick 2012-10-03 08:16:27 -07:00
parent 516306f677
commit 256daf2c85
1 changed files with 1 additions and 1 deletions

View 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)