Skip to content

Commit

Permalink
Fixed A misleading error message appears in the logs of a golang appl…
Browse files Browse the repository at this point in the history
…ication

#68
  • Loading branch information
afzalabbasi committed Feb 15, 2024
1 parent 340dc19 commit 5710741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/pyroscopereceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (recv *pyroscopeReceiver) Shutdown(ctx context.Context) error {
}

func writeResponseNoContent(w http.ResponseWriter) {
writeResponse(w, "", http.StatusNoContent, nil)
writeResponse(w, "", http.StatusOK, nil)
}

func writeResponse(w http.ResponseWriter, contentType string, statusCode int, payload []byte) {
Expand Down

0 comments on commit 5710741

Please sign in to comment.