Skip to content

Commit

Permalink
Return Message check guacsec#2195
Browse files Browse the repository at this point in the history
  • Loading branch information
000xs committed Oct 20, 2024
1 parent 43f0299 commit d2e873b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metrics/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (pc *prometheusCollector) MeasureGraphQLResponseDuration(next http.Handler)
OperationName string `json:"operationName"`
}
if !json.Valid(bodyCopy) { // Check if the body is valid JSON
http.Error(w, "invalid JSON body!", http.StatusBadRequest)
http.Error(w, "invalid JSON body p", http.StatusBadRequest)
return
}
if err := json.Unmarshal(bodyCopy, &graphqlRequest); err != nil {
Expand Down

0 comments on commit d2e873b

Please sign in to comment.