Skip to content

Commit

Permalink
Merge pull request #1332 from flanksource/canary-json-nil
Browse files Browse the repository at this point in the history
fix: nil pointer when trying to access http json resp
  • Loading branch information
moshloop authored Oct 11, 2023
2 parents c5e8d70 + 172451e commit e029df7
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 e029df7

Please sign in to comment.