From a1178d67b0a51078c25fb334221c07c7de01de48 Mon Sep 17 00:00:00 2001 From: the-newman Date: Mon, 9 Oct 2023 15:49:52 +0100 Subject: [PATCH] use http.MethodPost constant Co-authored-by: Tulir Asokan --- analytics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analytics.go b/analytics.go index 60ee0c3..e7bbe9a 100644 --- a/analytics.go +++ b/analytics.go @@ -53,7 +53,7 @@ func (ac *AnalyticsClient) trackSync(userID id.UserID, event string, properties return err } - req, err := http.NewRequest("POST", ac.url, &buf) + req, err := http.NewRequest(http.MethodPost, ac.url, &buf) if err != nil { return err }