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

This commit is contained in:
nemunaire 2022-03-13 12:02:04 +01:00
parent a7bfef0a27
commit ba1277551d
1 changed files with 2 additions and 2 deletions

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