diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-17 10:46:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-17 10:46:12 +0000 |
commit | 51dfb248933e5fac12fee1be8471bb08f9554428 (patch) | |
tree | 1d25518313ca94af4257e56ef919605a219a4178 /web/server | |
parent | Adding upstream version 1.42.0. (diff) | |
download | netdata-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')
-rw-r--r-- | web/server/web_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/server/web_client.c b/web/server/web_client.c index 92d97e8a..456de689 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) { |