summaryrefslogtreecommitdiffstats
path: root/src/web/api/web_api_v1.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 08:15:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 08:15:35 +0000
commitf09848204fa5283d21ea43e262ee41aa578e1808 (patch)
treec62385d7adf209fa6a798635954d887f718fb3fb /src/web/api/web_api_v1.c
parentReleasing debian version 1.46.3-2. (diff)
downloadnetdata-f09848204fa5283d21ea43e262ee41aa578e1808.tar.xz
netdata-f09848204fa5283d21ea43e262ee41aa578e1808.zip
Merging upstream version 1.47.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/web/api/web_api_v1.c')
-rw-r--r--src/web/api/web_api_v1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/api/web_api_v1.c b/src/web/api/web_api_v1.c
index 1884f1fe0..bfaa4f6f7 100644
--- a/src/web/api/web_api_v1.c
+++ b/src/web/api/web_api_v1.c
@@ -1422,10 +1422,13 @@ static int web_client_api_request_v1_aclk_state(RRDHOST *host, struct web_client
BUFFER *wb = w->response.data;
buffer_flush(wb);
-
+#ifdef ENABLE_ACLK
char *str = aclk_state_json();
buffer_strcat(wb, str);
freez(str);
+#else
+ buffer_strcat(wb, "{\"aclk-available\":false}");
+#endif
wb->content_type = CT_APPLICATION_JSON;
buffer_no_cacheable(wb);