[Libwebsockets] http client 201 response

Joel Winarske joel.winarske at gmail.com
Sat Apr 8 19:31:59 CEST 2017


Hi Andy,

Currently http response 201 in client.c is being handled as an error.  This
is a valid response.  This is my requested change:

if (!wsi->do_ws) {
if (n != 200 && n != 201 && n != 304) {
lwsl_notice("Connection failed with code %d\n", n);
cce = "HS: Server did not return 200, 201, or 304";
goto bail2;
}


Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20170408/aa50616a/attachment.html>


More information about the Libwebsockets mailing list