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
  • Loading branch information
000xs committed Oct 18, 2024
1 parent ec04cb8 commit 4ad9acd
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 4ad9acd

Please sign in to comment.