chore: add User-Agent to healthcheck request
This commit is contained in:
@@ -43,6 +43,8 @@ func (health Health) Check() error {
|
|||||||
InsecureSkipVerify: health.InsecureSkipVerify, // Skip SSL certificate verification
|
InsecureSkipVerify: health.InsecureSkipVerify, // Skip SSL certificate verification
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
//Set user-agent
|
||||||
|
healthReq.Header.Set("User-Agent", fmt.Sprintf("Goma-Gateway/%s", util.Version))
|
||||||
// Perform the request to the route's healthcheck
|
// Perform the request to the route's healthcheck
|
||||||
client := &http.Client{Transport: transport, Timeout: health.TimeOut}
|
client := &http.Client{Transport: transport, Timeout: health.TimeOut}
|
||||||
healthResp, err := client.Do(healthReq)
|
healthResp, err := client.Do(healthReq)
|
||||||
|
|||||||
Reference in New Issue
Block a user