mirror of https://github.com/golang/go.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
This commit is contained in:
parent
516306f677
commit
256daf2c85
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue