[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 
accident.

I pushed a patch on main to remove it

https://libwebsockets.org/git/libwebsockets/commit?id=75210eb5cc859c44bb72b8a8df399a0ffa48c0b3

I'll update v4.3-stable later.

-Andy



More information about the Libwebsockets mailing list