mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fixup no extentsion around last clean
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
a1a24d26a6
commit
e7016aae2b
1 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
#include "private-libwebsockets.h"
|
||||
|
||||
#define LWS_CPYAPP(ptr, str) { strcpy(ptr, str); ptr += strlen(str); }
|
||||
|
||||
#ifndef LWS_NO_EXTENSIONS
|
||||
LWS_VISIBLE int
|
||||
lws_extension_server_handshake(struct libwebsocket_context *context,
|
||||
struct libwebsocket *wsi, char **p)
|
||||
|
@ -157,7 +157,7 @@ lws_extension_server_handshake(struct libwebsocket_context *context,
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
int
|
||||
handshake_0405(struct libwebsocket_context *context, struct libwebsocket *wsi)
|
||||
{
|
||||
|
@ -223,13 +223,14 @@ handshake_0405(struct libwebsocket_context *context, struct libwebsocket *wsi)
|
|||
p += n;
|
||||
}
|
||||
|
||||
#ifndef LWS_NO_EXTENSIONS
|
||||
/*
|
||||
* Figure out which extensions the client has that we want to
|
||||
* enable on this connection, and give him back the list
|
||||
*/
|
||||
if (lws_extension_server_handshake(context, wsi, &p))
|
||||
goto bail;
|
||||
|
||||
#endif
|
||||
/* end of response packet */
|
||||
|
||||
LWS_CPYAPP(p, "\x0d\x0a\x0d\x0a");
|
||||
|
|
Loading…
Add table
Reference in a new issue