[Libwebsockets] lws_hdr_copy WSI_TOKEN_HTTP_URI_ARGS allways issues error.

Søren Holm sgh at sgh.dk
Thu Nov 11 10:19:04 CET 2021


Ok - thanks.

torsdag den 11. november 2021 10.00.19 CET skrev Andy Green:
> 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=75210eb5cc859c44bb72b8
> a8df399a0ffa48c0b3
> 
> I'll update v4.3-stable later.
> 
> -Andy


-- 
Søren Holm




More information about the Libwebsockets mailing list