diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2022-06-27 16:03:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 16:03:20 +0200 |
commit | cb13f0787d77c5e36f79ab18f492a52e0ec11123 (patch) | |
tree | 3f3f0269b34d895bb38d8c7bbc45cbd18022ac6c /aclk/aclk_otp.c | |
parent | b8bfe953fbc8b35e13bd85975d4b23b90a6346b8 (diff) |
Removes Legacy JSON Cloud Protocol Support In Agent (#13111)
* removes old protocol support (cloud removed support already)
Diffstat (limited to 'aclk/aclk_otp.c')
-rw-r--r-- | aclk/aclk_otp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/aclk/aclk_otp.c b/aclk/aclk_otp.c index c99c656373..47fdf1b598 100644 --- a/aclk/aclk_otp.c +++ b/aclk/aclk_otp.c @@ -814,11 +814,8 @@ int aclk_get_env(aclk_env_t *env, const char* aclk_hostname, int aclk_port) { return 1; } -#ifdef ENABLE_NEW_CLOUD_PROTOCOL - buffer_sprintf(buf, "/api/v1/env?v=%s&cap=json,proto&claim_id=%s", &(VERSION[1]) /* skip 'v' at beginning */, agent_id); -#else - buffer_sprintf(buf, "/api/v1/env?v=%s&cap=json&claim_id=%s", &(VERSION[1]) /* skip 'v' at beginning */, agent_id); -#endif + buffer_sprintf(buf, "/api/v1/env?v=%s&cap=proto&claim_id=%s", &(VERSION[1]) /* skip 'v' at beginning */, agent_id); + freez(agent_id); req.host = (char*)aclk_hostname; |