diff --git a/commands/http/handler.go b/commands/http/handler.go index 329e8fa29..a409a67c3 100644 --- a/commands/http/handler.go +++ b/commands/http/handler.go @@ -95,8 +95,8 @@ func (i Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { out, err := res.Reader() if err != nil { - w.WriteHeader(http.StatusInternalServerError) w.Header().Set(contentTypeHeader, "text/plain") + w.WriteHeader(http.StatusInternalServerError) w.Write([]byte(err.Error())) return }