Skip to content
Snippets Groups Projects
Commit d8b7e892 authored by Gecko's avatar Gecko Committed by Andy Green
Browse files

Subject: Save copy of ah pointer even with WS client so that HTTP

 error can be captured by calling lws_http_client_http_response.
parent 1788dc55
Branches
No related tags found
No related merge requests found
......@@ -408,10 +408,10 @@ lws_client_interpret_server_handshake(struct lws *wsi)
void *v;
#endif
ah = wsi->u.hdr.ah;
if (!wsi->do_ws) {
/* we are being an http client...
*/
ah = wsi->u.hdr.ah;
lws_union_transition(wsi, LWSCM_HTTP_CLIENT_ACCEPTED);
wsi->state = LWSS_CLIENT_HTTP_ESTABLISHED;
wsi->u.http.ah = ah;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment