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:
29458b1
)
client provide user_space on LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER
author
Andy Green
<andy@warmcat.com>
Tue, 3 May 2016 13:41:24 +0000
(21:41 +0800)
committer
Andy Green
<andy@warmcat.com>
Tue, 3 May 2016 13:41:24 +0000
(21:41 +0800)
https://github.com/warmcat/libwebsockets/issues/509
Signed-off-by: Andy Green <andy@warmcat.com>
lib/client.c
patch
|
blob
|
history
diff --git
a/lib/client.c
b/lib/client.c
index e8b65ac85010f38b1f845f760152514834f4a740..35fe8a19dbb431bd404e6e35023ff33c6edb0c61 100644
(file)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-1014,7
+1014,7
@@
lws_generate_client_handshake(struct lws *wsi, char *pkt)
/* give userland a chance to append, eg, cookies */
context->protocols[0].callback(wsi, LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER,
-
NULL
, &p, (pkt + LWS_MAX_SOCKET_IO_BUF) - p - 12);
+
wsi->user_space
, &p, (pkt + LWS_MAX_SOCKET_IO_BUF) - p - 12);
p += sprintf(p, "\x0d\x0a");