diff --git a/internal/services/gateway/api/run.go b/internal/services/gateway/api/run.go index 0d7e307f..6b132fbe 100644 --- a/internal/services/gateway/api/run.go +++ b/internal/services/gateway/api/run.go @@ -620,6 +620,7 @@ func (h *LogsHandler) do(w http.ResponseWriter, r *http.Request) error { // header also if there're currently no lines to send w.Header().Set("Cache-Control", "no-cache") w.Header().Set("Connection", "keep-alive") + w.Header().Set("Content-Type", "text/plain;charset=UTF-8") w.WriteHeader(http.StatusOK) var flusher http.Flusher if fl, ok := w.(http.Flusher); ok { diff --git a/internal/services/runservice/api/api.go b/internal/services/runservice/api/api.go index 1b3e3e97..701fe090 100644 --- a/internal/services/runservice/api/api.go +++ b/internal/services/runservice/api/api.go @@ -255,6 +255,7 @@ func (h *LogsHandler) readTaskLogs(ctx context.Context, runID, taskID string, se // header also if there're currently no lines to send w.Header().Set("Cache-Control", "no-cache") w.Header().Set("Connection", "keep-alive") + w.Header().Set("Content-Type", "text/plain;charset=UTF-8") w.WriteHeader(http.StatusOK) var flusher http.Flusher if fl, ok := w.(http.Flusher); ok {