diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-17 10:46:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-17 10:46:15 +0000 |
commit | 0d479e33a8ebe206dc5b62135f90880e54b6c117 (patch) | |
tree | 272c5ddc92ae1e568e6df554e94894ee66a2dfd1 /web/server | |
parent | Releasing debian version 1.42.0-1. (diff) | |
download | netdata-0d479e33a8ebe206dc5b62135f90880e54b6c117.tar.xz netdata-0d479e33a8ebe206dc5b62135f90880e54b6c117.zip |
Merging upstream version 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 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) { |