mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: http: synthesize CONNECTED for PUT as well as POST
This commit is contained in:
parent
03af613c13
commit
793ba842fa
1 changed files with 3 additions and 2 deletions
|
@ -443,8 +443,9 @@ malformed:
|
|||
*/
|
||||
if ((h->policy->protocol == LWSSSP_H1 ||
|
||||
h->policy->protocol == LWSSSP_H2) &&
|
||||
h->being_serialized &&
|
||||
!strcmp(h->policy->u.http.method, "POST"))
|
||||
h->being_serialized && (
|
||||
!strcmp(h->policy->u.http.method, "PUT") ||
|
||||
!strcmp(h->policy->u.http.method, "POST")))
|
||||
if (lws_ss_event_helper(h, LWSSSCS_CONNECTED))
|
||||
return LWSSSSRET_SS_HANDLE_DESTROYED;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue