[Libwebsockets] Add support for 'HEAD' method

Zevv libws at zevv.nl
Tue Jan 21 13:49:45 CET 2020


--- a/src/lib/third_party/libwebsockets/lib/roles/h1/ops-h1.c
+++ b/src/lib/third_party/libwebsockets/lib/roles/h1/ops-h1.c
@@ -925,7 +925,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"
    };



More information about the Libwebsockets mailing list