diff --git a/internal/api/json.go b/internal/api/json.go index 8a00cee6..f8904794 100644 --- a/internal/api/json.go +++ b/internal/api/json.go @@ -16,6 +16,10 @@ func ServeJSON[T any](w *events.ALBTargetGroupResponse, data T) { return } + if w.Headers == nil { + w.Headers = make(map[string]string) + } + w.Headers["Content-Type"] = "application/json" w.Body = string(buf) }