support options method

This commit is contained in:
lxsang 2020-09-21 20:10:07 +02:00
parent 8c11f06ff0
commit 1e4856b08a
2 changed files with 8 additions and 8 deletions

Binary file not shown.

View File

@ -873,7 +873,7 @@ void *decode_request(void *data)
ws = 1;
method = (char *)dvalue(rq->request, "METHOD");
task = antd_create_task(NULL, (void *)rq, NULL, rq->client->last_io);
if (strcmp(method, "GET") == 0 || strcmp(method, "HEAD") == 0)
if (strcmp(method, "GET") == 0 || strcmp(method, "HEAD") == 0 || strcmp(method, "OPTIONS") == 0)
{
//if(ctype) free(ctype);
if (ws && ws_key != NULL)