From d8b7e892fa47febd0c3795d5374828da9d2b2244 Mon Sep 17 00:00:00 2001 From: Gecko Date: Sun, 9 Apr 2017 21:31:50 -0700 Subject: [PATCH] Subject: Save copy of ah pointer even with WS client so that HTTP error can be captured by calling lws_http_client_http_response. --- lib/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.c b/lib/client.c index 5ce8393a..9bf4f683 100755 --- a/lib/client.c +++ b/lib/client.c @@ -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;