1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

client: treat 304 like 200

This commit is contained in:
Andy Green 2016-10-21 22:39:00 +08:00
parent b46c401245
commit fbe66065ff

View file

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