all: use http package to replace http method names (#26535)

This commit is contained in:
Shude Li
2023-01-24 11:12:25 +02:00
committed by GitHub
parent e4fa2cf5e3
commit 163e996d0e
7 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func (c *LibratoClient) PostMetrics(batch Batch) (err error) {
return
}
if req, err = http.NewRequest("POST", MetricsPostUrl, bytes.NewBuffer(js)); err != nil {
if req, err = http.NewRequest(http.MethodPost, MetricsPostUrl, bytes.NewBuffer(js)); err != nil {
return
}