summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rest.c b/src/rest.c
index 2864de2..8f9c61e 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -5938,6 +5938,9 @@ int og_client_state_process_payload_rest(struct og_client *cli)
} else if (!strncmp(cli->buf, "POST", strlen("POST"))) {
method = OG_METHOD_POST;
cmd = cli->buf + strlen("POST") + 2;
+ } else if (!strncmp(cli->buf, "DELETE", strlen("DELETE"))) {
+ method = OG_METHOD_DELETE;
+ cmd = cli->buf + strlen("DELETE") + 2;
} else
return og_client_method_not_found(cli);