From 6b84a9bac83973851763cbef2e386993a68d8b0b Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 27 Jan 2021 00:08:40 +0100 Subject: [PATCH] fix method bug --- http_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_server.c b/http_server.c index 6615820..f9b64bc 100644 --- a/http_server.c +++ b/http_server.c @@ -1149,7 +1149,7 @@ void *decode_post_request(void *data) char *method = (char *)dvalue(rq->request, "METHOD"); task = antd_create_task(NULL, (void *)rq, NULL, rq->client->last_io); //antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE); - if (!method || (!EQU(method, "POST") && !EQU(method, "PUT") && EQU(method, "PATCH"))) + if (!method || (!EQU(method, "POST") && !EQU(method, "PUT") && !EQU(method, "PATCH"))) return task; if (ctype == NULL || clen == -1) {