diff --git a/server/handlers.go b/server/handlers.go index 704a987..fb187c3 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -1218,7 +1218,7 @@ func (s *Server) getHandler(w http.ResponseWriter, r *http.Request) { So add text/plain in this case to fix XSS related issues/ */ if strings.TrimSpace(contentType) == "" { - contentType = "text/plain" + contentType = "text/plain; charset=utf-8" } } else { disposition = "attachment"