chore: add User-Agent to healthcheck request

This commit is contained in:
Jonas Kaninda
2024-11-19 08:38:11 +01:00
parent ac17dd8dba
commit c54ae4bd34

View File

@@ -43,7 +43,7 @@ func (health Health) Check() error {
InsecureSkipVerify: health.InsecureSkipVerify, // Skip SSL certificate verification
},
}
//Set user-agent
// Set user-agent
healthReq.Header.Set("User-Agent", fmt.Sprintf("Goma-Gateway/%s", util.Version))
// Perform the request to the route's healthcheck
client := &http.Client{Transport: transport, Timeout: health.TimeOut}