From cbf06018b99361a22d4f1a8db6c6ddf45e3b4a8e Mon Sep 17 00:00:00 2001 From: Aman Ullah Date: Mon, 22 Sep 2025 19:29:41 +0500 Subject: [PATCH] nit; use http methodPost instead of magic string --- pkg/detectors/cannyio/cannyio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/detectors/cannyio/cannyio.go b/pkg/detectors/cannyio/cannyio.go index 12f98e2d4..cb8f26f43 100644 --- a/pkg/detectors/cannyio/cannyio.go +++ b/pkg/detectors/cannyio/cannyio.go @@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result func verifyMatch(ctx context.Context, client *http.Client, token string) (bool, error) { payload := strings.NewReader("apiKey=" + token) - req, err := http.NewRequestWithContext(ctx, "POST", "https://canny.io/api/v1/boards/list", payload) + req, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://canny.io/api/v1/boards/list", payload) if err != nil { return false, err }