1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00

fix websocket bug

This commit is contained in:
lxsang 2018-10-06 00:41:59 +02:00
parent f5070f6c8c
commit 2ca916449e

View File

@ -554,11 +554,10 @@ void* decode_request(void* data)
if(ws && ws_key != NULL)
{
ws_confirm_request(rq->client, ws_key);
free(ws_key);
// insert wsocket flag to request
// plugin should handle this ugraded connection
// not the server
dput(request,"__web_socket__",strdup("1"));
dput(rq->request,"__web_socket__",strdup("1"));
}
// resolve task
task->handle = resolve_request;