proto optional fix (#11840)
Timotej S committed
Nov 30, 2021 at 13:30 UTC
f52240307fdf432e78a330c2a2b117fcc668de71
1 file changed
+4
aclk/aclk_otp.c
+4
@@ -842,7 +842,11 @@ int aclk_get_env(aclk_env_t *env, const char* aclk_hostname, int aclk_port) {
842
return 1;
843
}
844
845
+#ifdef ENABLE_NEW_CLOUD_PROTOCOL
846
buffer_sprintf(buf, "/api/v1/env?v=%s&cap=json,proto&claim_id=%s", &(VERSION[1]) /* skip 'v' at beginning */, agent_id);
847
+#else
848
+ buffer_sprintf(buf, "/api/v1/env?v=%s&cap=json&claim_id=%s", &(VERSION[1]) /* skip 'v' at beginning */, agent_id);
849
+#endif
850
freez(agent_id);
851
852
req.host = (char*)aclk_hostname;