From 172451e9f68721a2eec30399268cfd96b4aa9291 Mon Sep 17 00:00:00 2001 From: Moshe Immerman Date: Thu, 12 Oct 2023 00:52:55 +0300 Subject: [PATCH] fix: nil pointer when access http json content --- checks/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/checks/http.go b/checks/http.go index b59753dcc..947d9eebb 100644 --- a/checks/http.go +++ b/checks/http.go @@ -171,6 +171,7 @@ func (c *HTTPChecker) Check(ctx *context.Context, extConfig external.Check) pkg. "elapsed": time.Since(start), "content": body, "sslAge": utils.Deref(age), + "json": make(map[string]any), } if resp.IsJSON() {