From 5902547a10ff37e4891fc58d677fc2a27b4a7770 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 3 Apr 2016 15:15:00 -0500 Subject: [PATCH] wsockd: use text frames --- wsockd/wsockd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wsockd/wsockd.c b/wsockd/wsockd.c index af38a574..2414a886 100644 --- a/wsockd/wsockd.c +++ b/wsockd/wsockd.c @@ -389,7 +389,7 @@ conn_mod_write_short_frame(conn_t * conn, void *data, int len) { ws_frame_hdr_t hdr; - ws_frame_set_opcode(&hdr, WEBSOCKET_OPCODE_BINARY_FRAME); + ws_frame_set_opcode(&hdr, WEBSOCKET_OPCODE_TEXT_FRAME); ws_frame_set_fin(&hdr, 1); hdr.payload_length_mask = (len + 2) & 0x7f; @@ -403,7 +403,7 @@ conn_mod_write_long_frame(conn_t * conn, void *data, int len) { ws_frame_ext_t hdr; - ws_frame_set_opcode(&hdr.header, WEBSOCKET_OPCODE_BINARY_FRAME); + ws_frame_set_opcode(&hdr.header, WEBSOCKET_OPCODE_TEXT_FRAME); ws_frame_set_fin(&hdr.header, 1); hdr.header.payload_length_mask = 126; hdr.payload_length_extended = htons(len + 2);