checker: Fix matrix-client test: not checking the good status code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre-Olivier Mercier 2022-03-13 12:02:04 +01:00
parent a7bfef0a27
commit ba1277551d

View File

@ -523,8 +523,8 @@ func check_matrix_client(domain string) (version string, err error) {
}
defer resp2.Body.Close()
if resp.StatusCode != http.StatusOK {
return "", fmt.Errorf("Unable to fetch your homeserver versions at %s/_matrix/client/versions: %s", HomeserverBase, resp.Status)
if resp2.StatusCode != http.StatusOK {
return "", fmt.Errorf("Unable to fetch your homeserver versions at %s/_matrix/client/versions: %s", HomeserverBase, resp2.Status)
}
var clientTest matrix_client_versions