use http.MethodPost constant
Co-authored-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
parent
c7244e67da
commit
a1178d67b0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue