Add content-type to record revision endpoint

Correct, and fixes cases where mime sniffing is disabled.
This commit is contained in:
Tomaž Jerman
2022-09-14 10:17:22 +02:00
parent 7d18058f58
commit c0631666d1
+2
View File
@@ -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
}