We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431c1d3 commit 0455e7bCopy full SHA for 0455e7b
cmd/crowdsec-cli/climetrics/scrape.go
@@ -70,7 +70,7 @@ func ScrapeMetrics(ctx context.Context, url string) ([]MetricPoint, error) {
70
Timeout: 30 * time.Second,
71
}
72
73
- req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, http.NoBody)
74
if err != nil {
75
return nil, fmt.Errorf("creating request: %w", err)
76
0 commit comments