[Libwebsockets] http client 201 response

Andy Green andy at warmcat.com
Sun Apr 9 02:00:27 CEST 2017



On 9 April 2017 01:31:59 GMT+08:00, Joel Winarske <joel.winarske at gmail.com> wrote:
>Hi Andy,
>
>Currently http response 201 in client.c is being handled as an error. 

I pushed allowing client 201 and 401 to pass on master.

>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;
>}

It's a lot easier if you send a patch, or just the results of git diff with any irrelevent stanzas removed.

-Andy

>
>Joel

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Libwebsockets mailing list