checker: Fix matrix-client test: not checking the good status code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a7bfef0a27
commit
ba1277551d
@ -523,8 +523,8 @@ func check_matrix_client(domain string) (version string, err error) {
|
|||||||
}
|
}
|
||||||
defer resp2.Body.Close()
|
defer resp2.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode != http.StatusOK {
|
if resp2.StatusCode != http.StatusOK {
|
||||||
return "", fmt.Errorf("Unable to fetch your homeserver versions at %s/_matrix/client/versions: %s", HomeserverBase, resp.Status)
|
return "", fmt.Errorf("Unable to fetch your homeserver versions at %s/_matrix/client/versions: %s", HomeserverBase, resp2.Status)
|
||||||
}
|
}
|
||||||
|
|
||||||
var clientTest matrix_client_versions
|
var clientTest matrix_client_versions
|
||||||
|
Reference in New Issue
Block a user