Subject: Save copy of ah pointer even with WS client so that HTTP
error can be captured by calling lws_http_client_http_response.
This commit is contained in:
parent
f58241c4f2
commit
6018c0519a
1 changed files with 1 additions and 1 deletions
|
@ -431,10 +431,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue