[Libwebsockets] lws_hdr_copy WSI_TOKEN_HTTP_URI_ARGS allways issues error.

Andy Green andy at warmcat.com
Thu Nov 11 10:00:19 CET 2021

On 11/11/21 08:55, Søren Holm wrote:
> Calling lws_hdr_copy with token set to WSI_TOKEN_HTTP_URI_ARGS always issues
> an error log.
> Looking a the source code (parsers.c  lws_hdr_copy) this happenens.
>      n = wsi->http.ah->frag_index[h];
>      if (h == WSI_TOKEN_HTTP_URI_ARGS)
>          lwsl_err("%s: WSI_TOKEN_HTTP_URI_ARGS start frag %d\n",
>                  __func__, n);
> Why is that? it does not seem to me like this should be an error.

Right, it's not an error, it's just a stray debugging log left in by 

I pushed a patch on main to remove it


I'll update v4.3-stable later.


More information about the Libwebsockets mailing list