From e752c006c3c16db08bc3b1099a38f691ff9cbb3a Mon Sep 17 00:00:00 2001 From: "wim.de.jager" Date: Mon, 14 Jun 2021 14:24:31 +0200 Subject: [PATCH] Improvements --- clamrest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/clamrest.go b/clamrest.go index e790799..7949e1f 100644 --- a/clamrest.go +++ b/clamrest.go @@ -120,6 +120,7 @@ func scanHandler(w http.ResponseWriter, r *http.Request) { } s := <-response + w.Header().Set("Content-Type", "application/json; charset=utf-8") respJson, err := json.Marshal(&s)