use http.MethodPost constant

Co-authored-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
the-newman 2023-10-09 15:49:52 +01:00 committed by GitHub
parent c7244e67da
commit a1178d67b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ func (ac *AnalyticsClient) trackSync(userID id.UserID, event string, properties
return err return err
} }
req, err := http.NewRequest("POST", ac.url, &buf) req, err := http.NewRequest(http.MethodPost, ac.url, &buf)
if err != nil { if err != nil {
return err return err
} }