1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

client: http: add PUT to stream bindable methods

This commit is contained in:
Dev Akira 2020-01-31 22:53:25 +00:00 committed by Andy Green
parent ac1229f2f7
commit f29838e4e1

View file

@ -749,7 +749,7 @@ lws_client_connect_2_dnsreq(struct lws *wsi)
/* only pipeline things we associate with being a stream */
if (meth && strcmp(meth, "RAW") && strcmp(meth, "GET") &&
strcmp(meth, "POST"))
strcmp(meth, "POST") && strcmp(meth, "PUT"))
goto solo;
/* consult active connections to find out disposition */
@ -811,7 +811,7 @@ solo:
*/
if (meth && (!strcmp(meth, "RAW") || !strcmp(meth, "GET") ||
!strcmp(meth, "POST")) &&
!strcmp(meth, "POST") || !strcmp(meth, "PUT")) &&
lws_dll2_is_detached(&wsi->dll2_cli_txn_queue) &&
lws_dll2_is_detached(&wsi->dll_cli_active_conns)) {
lws_vhost_lock(wsi->vhost);