diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-10-19 10:45:01 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-10-19 10:46:23 +0200 |
commit | d3ad9e13e0cfc0f0cd088334ae90e30869551154 (patch) | |
tree | 11395f2c5ee59d75a1d5eeffdf51128ec080ad17 /src/rest.c | |
parent | 4fca62a8ee24524b65d6b4526e0f8e3397b7e797 (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/rest.c')
-rw-r--r-- | src/rest.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"))) { |