Skip to content

Commit

Permalink
Fixed Issue: guacsec#2195 500 error when sending empty JSON payload t…
Browse files Browse the repository at this point in the history
…o GraphQL server

Signed-off-by: Sithum Sathsara <[email protected]>
  • Loading branch information
000xs committed Oct 20, 2024
1 parent cc3f112 commit 3756176
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/metrics/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ func (pc *prometheusCollector) MeasureGraphQLResponseDuration(next http.Handler)

// Create a copy of the request body
body, err := io.ReadAll(r.Body)

if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
Expand Down

0 comments on commit 3756176

Please sign in to comment.