[Libwebsockets] lws_add_http_header_by_token

Chanson Shen shenchsh94 at gmail.com
Mon May 7 09:30:15 CEST 2018


Hi all,

In `minimal-http_server-form-get.c`, after `lws_http_redirect`, the comment shows that we can add more headers after calling `lws_http_redirect`.

But in `lws_http_redirect`, the code already calls `lws_finalize_http_header` and `lws_write`. Is that correct? And in the example code, it calls `lws_finalize_http_header` and `lws_write` again after `lws_http_redirect`. Does this violate `single lws_write` principle in https://libwebsockets.org/lws-api-doc-master/html/md_READMEs_README_8coding.html#writeable <https://libwebsockets.org/lws-api-doc-master/html/md_READMEs_README_8coding.html#writeable> ?

Thanks,
Chanson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20180507/9a53d719/attachment.html>


More information about the Libwebsockets mailing list