From a3bb7aa22ed56360e9d7a6f5db5e4d7acc838413 Mon Sep 17 00:00:00 2001 From: Jarno Rankinen Date: Sun, 29 Jan 2023 23:43:36 +0200 Subject: [PATCH] #10 /api/v1/coils content-type to application/json --- enervent-ctrl-go/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/enervent-ctrl-go/main.go b/enervent-ctrl-go/main.go index a89df7c..fc63644 100644 --- a/enervent-ctrl-go/main.go +++ b/enervent-ctrl-go/main.go @@ -14,6 +14,7 @@ var ( ) func coils(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(pingvin.Coils) }