From c0631666d1baa27e09e45165e54fbcaf2fb59d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Wed, 14 Sep 2022 10:16:33 +0200 Subject: [PATCH] Add content-type to record revision endpoint Correct, and fixes cases where mime sniffing is disabled. --- compose/rest/record.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/rest/record.go b/compose/rest/record.go index bacea1034..e96a49412 100644 --- a/compose/rest/record.go +++ b/compose/rest/record.go @@ -613,6 +613,8 @@ func (ctrl *Record) Revisions(ctx context.Context, r *request.RecordRevisions) ( } return func(w http.ResponseWriter, req *http.Request) { + w.Header().Set("Content-Type", "application/json") + if _, err = w.Write([]byte(`{"response":{"set":[`)); err != nil { return }