Skip to content

Commit

Permalink
Return Message check 2 guacsec#2195
Browse files Browse the repository at this point in the history
Signed-off-by: Sithum Sathsara <[email protected]>
  • Loading branch information
000xs committed Oct 20, 2024
1 parent d2e873b commit 4f89bad
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 p", http.StatusBadRequest)
http.Error(w, "invalid JSON body please check your request!", http.StatusBadRequest)
return
}
if err := json.Unmarshal(bodyCopy, &graphqlRequest); err != nil {
Expand Down

0 comments on commit 4f89bad

Please sign in to comment.