Skip to content

Commit

Permalink
replace const
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Oct 30, 2023
1 parent 513a774 commit 129b7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/usage/reportusage.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func createEcosystemRequestInfo(content []byte) (c *http.Client, req *http.Reque
if client, err = httpclient.ClientBuilder().Build(); err != nil {
return
}
if req, err = http.NewRequest("POST", ecosystemUsageApiPath, bytes.NewBuffer(content)); err != nil {
if req, err = http.NewRequest(http.MethodPost, ecosystemUsageApiPath, bytes.NewBuffer(content)); err != nil {
return
}
req.Header.Set("Content-Type", "application/json")
Expand Down

0 comments on commit 129b7d2

Please sign in to comment.