diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rest.c | 3 | ||||
-rw-r--r-- | src/rest.h | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -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); @@ -87,6 +87,7 @@ int og_client_state_process_payload_rest(struct og_client *cli); enum og_rest_method { OG_METHOD_GET = 0, OG_METHOD_POST, + OG_METHOD_DELETE, OG_METHOD_NO_HTTP }; |