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:
parent
ac1229f2f7
commit
f29838e4e1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue