go/src/veyron/runtimes/google/ipc/stream/manager/http: utf-8 encodings
http does not specify the default character encoding. Add additional
header to ask for utf-8 on browsers that are not utf-8 by default.
Change-Id: I326c99cdd8a8ebbd563dd4379a667e98718a93ed
diff --git a/runtimes/google/ipc/stream/manager/http.go b/runtimes/google/ipc/stream/manager/http.go
index f601a45..c8a485c 100644
--- a/runtimes/google/ipc/stream/manager/http.go
+++ b/runtimes/google/ipc/stream/manager/http.go
@@ -26,6 +26,6 @@
type httpHandler struct{ m *manager }
func (h httpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- w.Header().Set("Content-Type", "text/plain")
+ w.Header().Set("Content-Type", "text/plain; charset=UTF-8")
w.Write([]byte(h.m.DebugString()))
}