mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 14:20:32 +01:00
fix(health/http): potential panic when error is tlsErr
This commit is contained in:
@@ -106,6 +106,11 @@ func processHealthResponse(lat time.Duration, err error, getStatusCode func() in
|
||||
Detail: err.Error(),
|
||||
}, nil
|
||||
}
|
||||
return types.HealthCheckResult{
|
||||
Latency: lat,
|
||||
Healthy: true,
|
||||
Detail: tlsErr.Error(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
statusCode := getStatusCode()
|
||||
|
||||
Reference in New Issue
Block a user