diff --git a/receiver/cloudflarereceiver/fuzz_test.go b/receiver/cloudflarereceiver/fuzz_test.go index 7c76768a58b1..77e6bf6d2071 100644 --- a/receiver/cloudflarereceiver/fuzz_test.go +++ b/receiver/cloudflarereceiver/fuzz_test.go @@ -16,8 +16,7 @@ import ( func FuzzHandleReq(f *testing.F) { f.Fuzz(func(t *testing.T, reqBody []byte, gZip bool) { - - req, err := http.NewRequest("POST", "http://example.com", bytes.NewReader(reqBody)) + req, err := http.NewRequest(http.MethodPost, "http://example.com", bytes.NewReader(reqBody)) if err != nil { t.Skip() }