src/server/daemon/websocket.c

changeset 155
36cd2e280386
parent 153
85320d8b5d5c
child 161
aadda87bad1b
--- a/src/server/daemon/websocket.c	Tue Jan 24 17:36:04 2017 +0100
+++ b/src/server/daemon/websocket.c	Tue Jan 24 17:36:28 2017 +0100
@@ -304,7 +304,7 @@
 
 NSAPI_PUBLIC int websocket_send_text(SYS_NETFD csd, char *msg, size_t len) {
     char frame[WS_FRAMEHEADER_BUFLEN];
-    frame[0] = 0b10000001;
+    frame[0] = 129; // 0b10000001
     size_t hlen;
     if(len < 126) {
         frame[1] = (char)len;

mercurial