[Libwebsockets] libwebsockets_return_http_status bug??

Andy Green andy at warmcat.com
Fri Nov 14 00:23:46 CET 2014



On 14 November 2014 02:40:14 GMT+08:00, Srikar Vadlamani <SrikarVadlamani at trafficware.com> wrote:
>I am looking at libwebsockets_return_http_status function and want to
>send html_body as part of it,
>
>
>
>Seems like it will never work, as
>
> m = libwebsocket_write(wsi, start, p - start, LWS_WRITE_HTTP_HEADERS);
>    if (m)
>        return m;
>
>
>
>the code will never get past this line, and go to the place where it is
>actually sending the html_body.

Yes it got mangled by the conversion to http2-compatible header stuff.  Thanks for reporting it.

It's fixed here

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=3adeca8eca9e8911df2b5f53786835e3d79009d6

-Andy

>
>
>Andy, can you comment on it?
>
>
>
>Srikar
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://ml.libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list