From 5983e03e3266a85e87422e0d3f1b5473c1fe0fb1 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 13 Dec 2024 14:00:13 +0800 Subject: [PATCH] metrics/librato: use http package to replace http method names (#26535) --- metrics/librato/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/librato/client.go b/metrics/librato/client.go index a807c392af01e..89ecb9ec64da5 100644 --- a/metrics/librato/client.go +++ b/metrics/librato/client.go @@ -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 }