Permalink
Browse files

websocket, bugfix: not compress control message.

  • Loading branch information...
xicilion committed Oct 28, 2017
1 parent e033057 commit 8bdf4ccb0472e4ae2157c2570ae1c444d034169e
Showing with 3 additions and 0 deletions.
  1. +3 −0 fibjs/include/WebSocketMessage.h
@@ -24,6 +24,9 @@ class WebSocketMessage : public WebSocketMessage_base {
, m_bRep(bRep)
{
m_message = new Message(m_bRep);
if (type != ws_base::_TEXT && type != ws_base::_BINARY)
m_compress = false;
m_message->set_type(type);
}

0 comments on commit 8bdf4cc

Please sign in to comment.