From d3ad9e13e0cfc0f0cd088334ae90e30869551154 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 19 Oct 2023 10:45:01 +0200 Subject: rest: use method not found instead of bad request for /clients requests /clients says bad request for unsupported method, use correct error report. --- src/rest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest.c b/src/rest.c index 49a2eaa..4c7c927 100644 --- a/src/rest.c +++ b/src/rest.c @@ -6250,7 +6250,7 @@ int og_client_state_process_payload_rest(struct og_client *cli) err = og_cmd_get_clients(root, ¶ms, buf_reply); break; default: - err = og_client_bad_request(cli); + err = og_client_method_not_found(cli); goto err_process_rest_payload; } } else if (!strncmp(cmd, "client/repo", strlen("client/repo"))) { -- cgit v1.2.3-18-g5258