summaryrefslogtreecommitdiffstats
path: root/web/server/web_client.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-17 10:46:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-17 10:46:12 +0000
commit51dfb248933e5fac12fee1be8471bb08f9554428 (patch)
tree1d25518313ca94af4257e56ef919605a219a4178 /web/server/web_client.c
parentAdding upstream version 1.42.0. (diff)
downloadnetdata-51dfb248933e5fac12fee1be8471bb08f9554428.tar.xz
netdata-51dfb248933e5fac12fee1be8471bb08f9554428.zip
Adding upstream version 1.42.1.upstream/1.42.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/web_client.c')
-rw-r--r--web/server/web_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/server/web_client.c b/web/server/web_client.c
index 92d97e8a8..456de6892 100644
--- a/web/server/web_client.c
+++ b/web/server/web_client.c
@@ -22,8 +22,8 @@ inline int web_client_bearer_required(struct web_client *w) {
w->response.data->content_type = CT_TEXT_PLAIN;
buffer_flush(w->response.data);
buffer_strcat(w->response.data, "An authorization bearer is required to access the resource.");
- w->response.code = HTTP_RESP_UNAUTHORIZED;
- return HTTP_RESP_UNAUTHORIZED;
+ w->response.code = HTTP_RESP_PRECOND_FAIL;
+ return HTTP_RESP_PRECOND_FAIL;
}
static inline int bad_request_multiple_dashboard_versions(struct web_client *w) {