[Libwebsockets] Add support for 'HEAD' method

Andy Green andy at warmcat.com
Tue Jan 21 14:02:19 CET 2020



On 1/21/20 12:49 PM, Zevv wrote:
> --- 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"
>      };

Thanks, this and the patch from earlier are both pushed on master.

-Andy


More information about the Libwebsockets mailing list