1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
Commit graph

5 commits

Author SHA1 Message Date
Joe Littlejohn
fad43ff8e9 Check status before checking for Sec-WebSocket-Accept
If the server rejects the attempt to establish a connection by returning
a response status other than 101, then it will not include the
Sec-WebSocket-Accept header. We need to check for 101 status (and return
an appropriate error message) before looking for the accept header.

See #1200
2018-03-07 20:23:46 +08:00
Andy Green
1177c20a59 client: handle bio_create failing 2017-11-16 09:54:56 +08:00
Andy Green
d50823c7fb client: allow failout when adding client headers 2017-10-24 06:44:43 +08:00
Andy Green
0a9f37225f client: do not treat selected response codes as connection failures
There was not really any "connection failure" with some of these like 404.

They may have body content that is important.

The client should use lws_http_client_http_response(wsi) to discover
the response code the client action received and decide for itself
what to do about that.
2017-10-24 06:44:26 +08:00
Andy Green
c83afc66e6 refactor: subdirs for source in lib
Split out some optional code into own sources to
shrink down libwebsockets.c and server.c a bit
2017-10-16 17:28:37 +08:00
Renamed from lib/client.c (Browse further)