Fix test-api-client to correctly instantiate the API class

This commit is contained in:
Gergely Polonkai 2016-03-18 22:07:36 +00:00
parent ca4b897d99
commit b125086669

View File

@ -183,7 +183,7 @@ main(int argc, char *argv[])
g_info("Starting up: %s with %s:%s", *homeserver, user, password); g_info("Starting up: %s with %s:%s", *homeserver, user, password);
api = MATRIX_API(matrix_http_api_new(*homeserver, NULL)); api = MATRIX_API(matrix_http_api_new(*homeserver, NULL, NULL));
matrix_http_api_set_validate_certificate(MATRIX_HTTP_API(api), matrix_http_api_set_validate_certificate(MATRIX_HTTP_API(api),
!no_validate_certs); !no_validate_certs);
builder = json_builder_new(); builder = json_builder_new();