Skip to content

Commit

Permalink
fix: nil pointer when access http json content
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Oct 11, 2023
1 parent c5e8d70 commit 172451e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checks/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 172451e

Please sign in to comment.