metrics/librato: use http package to replace http method names (#26535)

This commit is contained in:
Daniel Liu 2024-12-13 14:00:13 +08:00
parent 40f47a641b
commit 76320b4b98

View file

@ -80,7 +80,7 @@ func (lc *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
}