mirror of https://git.48k.eu/ogserver
rest: enable shell/output as a GET request
shell/output does not modify state, add check to consider GET shell/output a valid request. Keep POST shell/output compatibility.master v1.2.5-13
parent
c0ca4b8cbc
commit
814daceeee
|
@ -8094,7 +8094,7 @@ int og_client_state_process_payload_rest(struct og_client *cli)
|
|||
}
|
||||
err = og_cmd_run_post(root, ¶ms);
|
||||
} else if (!strncmp(cmd, "shell/output", strlen("shell/output"))) {
|
||||
if (method != OG_METHOD_POST) {
|
||||
if (method != OG_METHOD_POST && method != OG_METHOD_GET) {
|
||||
err = og_client_method_not_found(cli);
|
||||
goto err_process_rest_payload;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue