fix: test-cee.c
@@ -15,18 +15,15 @@ int commit(char *base_url, struct logconf *config)
logconf_add_id(config, data, "CEE_HTTP");
curl_global_init(CURL_GLOBAL_ALL);
- struct sized_buffer body = {NULL, 0};
- body.start = "{ }";
- body.size = strlen(body.start);
-
+ struct sized_buffer body = {.start = "{ }", .size = 3};
struct ua_resp_handle handle = {.ok_cb = load, .ok_obj = NULL};
- struct ua_info info = {};
+ struct ua_info info={0};
- ua_run(data, &info, &handle, &body, NULL, HTTP_POST, "/echo?m=POST");
- ua_run(data, &info, &handle, &body, NULL, HTTP_PATCH, "/echo?m=PATCH");
- ua_run(data, &info, &handle, &body, NULL, HTTP_GET, "/echo?m=GET");
- ua_run(data, &info, &handle, &body, NULL, HTTP_PUT, "/echo?m=PUT");
- ua_run(data, &info, &handle, &body, NULL, HTTP_DELETE, "/echo?m=DELETE");
+ ua_run(data, &info, &handle, &body, HTTP_POST, "/echo?m=POST");
+ ua_run(data, &info, &handle, &body, HTTP_PATCH, "/echo?m=PATCH");
+ ua_run(data, &info, &handle, &body, HTTP_GET, "/echo?m=GET");
+ ua_run(data, &info, &handle, &body, HTTP_PUT, "/echo?m=PUT");
+ ua_run(data, &info, &handle, &body, HTTP_DELETE, "/echo?m=DELETE");
curl_global_cleanup();
