We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eef44bb commit 1c800e5Copy full SHA for 1c800e5
cmd/agent_smith/config.go
@@ -50,8 +50,7 @@ func runConfig(params *configContext) {
50
req.Header.Set("x-rewst-secret", params.ConfigSecret)
51
req.Header.Set("Content-Type", "application/json")
52
53
- client := &http.Client{}
54
- res, err := client.Do(req)
+ res, err := http.DefaultClient.Do(req)
55
if err != nil {
56
logger.Error("Failed to execute http request", "error", err)
57
return
0 commit comments