mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +01:00
support options method
This commit is contained in:
parent
8c11f06ff0
commit
1e4856b08a
BIN
dist/antd-1.0.5b.tar.gz
vendored
BIN
dist/antd-1.0.5b.tar.gz
vendored
Binary file not shown.
@ -873,7 +873,7 @@ void *decode_request(void *data)
|
|||||||
ws = 1;
|
ws = 1;
|
||||||
method = (char *)dvalue(rq->request, "METHOD");
|
method = (char *)dvalue(rq->request, "METHOD");
|
||||||
task = antd_create_task(NULL, (void *)rq, NULL, rq->client->last_io);
|
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(ctype) free(ctype);
|
||||||
if (ws && ws_key != NULL)
|
if (ws && ws_key != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user