summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2023-10-19 10:45:01 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-10-19 10:46:23 +0200
commitd3ad9e13e0cfc0f0cd088334ae90e30869551154 (patch)
tree11395f2c5ee59d75a1d5eeffdf51128ec080ad17 /src
parent4fca62a8ee24524b65d6b4526e0f8e3397b7e797 (diff)
rest: use method not found instead of bad request for /clients requests
/clients says bad request for unsupported method, use correct error report.
Diffstat (limited to 'src')
-rw-r--r--src/rest.c2
1 files changed, 1 insertions, 1 deletions
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, &params, 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"))) {