···8888 }
89899090 var called int
9191+9192 var result checker.Response
92939394 op := func() error {
···177178178179 result = res
179180 result.Region = h.Region
181181+ result.JobType = "http"
180182181183 // it's in error if not successful
182184 if isSuccessfull {
···3636 Body string `json:"body,omitempty"`
3737 Error string `json:"error,omitempty"`
3838 Region string `json:"region"`
3939+ JobType string `json:"jobType"`
3940 Latency int64 `json:"latency"`
4041 Timestamp int64 `json:"timestamp"`
4142 Status int `json:"status,omitempty"`
···8081 if inputData.Method != http.MethodGet {
8182 head := req.Header
8283 _, ok := head["Content-Type"]
8484+8385 if !ok {
8486 // by default we set the content type to application/json if it's a POST request
8587 req.Header.Set("Content-Type", "application/json")
···127129128130 return Response{}, fmt.Errorf("error with monitorURL %s: %w", inputData.URL, err)
129131 }
132132+130133 defer response.Body.Close()
131134132135 body, err := io.ReadAll(response.Body)