aboutsummaryrefslogtreecommitdiff
path: root/lib/roles/h1
diff options
context:
space:
mode:
authorZevv <libws@zevv.nl>2020-01-21 12:59:46 +0000
committerAndy Green <andy@warmcat.com>2020-02-04 14:16:18 +0000
commite6f3aafe13a74b89808a6585c11ddad6e406ebf8 (patch)
treeede300f70903511d17845968b73fb8233eb25c81 /lib/roles/h1
parentaf391e62ba073809327aef0de021dd5c9be31734 (diff)
downloadlibwebsockets-e6f3aafe13a74b89808a6585c11ddad6e406ebf8.tar.gz
http client: allow HEAD method at h1 client bind
Diffstat (limited to 'lib/roles/h1')
-rw-r--r--lib/roles/h1/ops-h1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c
index 12d1860c..3199feaa 100644
--- a/lib/roles/h1/ops-h1.c
+++ b/lib/roles/h1/ops-h1.c
@@ -927,7 +927,7 @@ rops_adoption_bind_h1(struct lws *wsi, int type, const char *vh_prot_name)
#if defined(LWS_WITH_CLIENT)
static const char * const http_methods[] = {
- "GET", "POST", "OPTIONS", "PUT", "PATCH", "DELETE", "CONNECT"
+ "GET", "POST", "OPTIONS", "HEAD", "PUT", "PATCH", "DELETE", "CONNECT"
};
static int