Skip to content

Commit

Permalink
metrics/librato: use http package to replace http method names (ether…
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan authored and JukLee0ira committed Dec 20, 2024
1 parent e86c81f commit 81b7733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/librato/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 81b7733

Please sign in to comment.