mirror of
https://github.com/lxsang/ant-http
synced 2024-12-27 09:18:22 +01:00
fix websocket bug
This commit is contained in:
parent
f5070f6c8c
commit
2ca916449e
@ -554,11 +554,10 @@ void* decode_request(void* data)
|
|||||||
if(ws && ws_key != NULL)
|
if(ws && ws_key != NULL)
|
||||||
{
|
{
|
||||||
ws_confirm_request(rq->client, ws_key);
|
ws_confirm_request(rq->client, ws_key);
|
||||||
free(ws_key);
|
|
||||||
// insert wsocket flag to request
|
// insert wsocket flag to request
|
||||||
// plugin should handle this ugraded connection
|
// plugin should handle this ugraded connection
|
||||||
// not the server
|
// not the server
|
||||||
dput(request,"__web_socket__",strdup("1"));
|
dput(rq->request,"__web_socket__",strdup("1"));
|
||||||
}
|
}
|
||||||
// resolve task
|
// resolve task
|
||||||
task->handle = resolve_request;
|
task->handle = resolve_request;
|
||||||
|
Loading…
Reference in New Issue
Block a user