projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58241c
)
Subject: Save copy of ah pointer even with WS client so that HTTP
author
Gecko
<gecko@iptt.me>
Mon, 10 Apr 2017 04:31:50 +0000
(21:31 -0700)
committer
Andy Green
<andy@warmcat.com>
Mon, 10 Apr 2017 04:37:45 +0000
(12:37 +0800)
error can be captured by calling lws_http_client_http_response.
lib/client.c
patch
|
blob
|
history
diff --git
a/lib/client.c
b/lib/client.c
index
90fe227
..
663a974
100755
(executable)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-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;