diff --git a/cmd/internal/http/server.go b/cmd/internal/http/server.go index 355ed70..ac252ef 100644 --- a/cmd/internal/http/server.go +++ b/cmd/internal/http/server.go @@ -93,7 +93,7 @@ func (s *Server) getCheckpointN(w http.ResponseWriter, r *http.Request) { http.Error(w, "failed to get checkpoint", httpForCode(status.Code(err))) return } - w.Header().Set("Content-Type", "text/plain") + w.Header().Set("Content-Type", "text/plain; charset=utf-8") if _, err := w.Write(chkpt); err != nil { glog.Errorf("w.Write(): %v", err) } @@ -112,7 +112,7 @@ func (s *Server) getCheckpointWitness(w http.ResponseWriter, r *http.Request) { http.Error(w, "failed to get checkpoint", httpForCode(status.Code(err))) return } - w.Header().Set("Content-Type", "text/plain") + w.Header().Set("Content-Type", "text/plain; charset=utf-8") if _, err := w.Write(chkpt); err != nil { glog.Errorf("w.Write(): %v", err) }