From f29838e4e1011a6481e1e294eb3b34cf8cb3645e Mon Sep 17 00:00:00 2001 From: Dev Akira Date: Fri, 31 Jan 2020 22:53:25 +0000 Subject: [PATCH] client: http: add PUT to stream bindable methods --- lib/roles/http/client/client-handshake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roles/http/client/client-handshake.c b/lib/roles/http/client/client-handshake.c index 08f5c48d8..3e763820f 100644 --- a/lib/roles/http/client/client-handshake.c +++ b/lib/roles/http/client/client-handshake.c @@ -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);