modules/websocket: Fixes to WS and WSS message sending
authorPeter Dunkley <peter.dunkley@crocodile-rcs.com>
Wed, 4 Jul 2012 15:15:29 +0000 (16:15 +0100)
committerPeter Dunkley <peter.dunkley@crocodile-rcs.com>
Wed, 4 Jul 2012 15:15:29 +0000 (16:15 +0100)
modules/websocket/ws_frame.c

index 31754a5..a9b10f6 100644 (file)
@@ -231,7 +231,7 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
                }
        }
 
-       if (dst.proto == PROTO_TCP)
+       if (dst.proto == PROTO_WS)
        {
                if (unlikely(tcp_disable))
                {
@@ -241,7 +241,7 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
                }               
        }
 #ifdef USE_TLS
-       else if (dst.proto == PROTO_TLS)
+       else if (dst.proto == PROTO_WSS)
        {
                if (unlikely(tls_disable))
                {