From dfe7dca08f4c9a9456d6132af5f6b59fcd6865e4 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 8 Jul 2020 14:42:08 +0300 Subject: [PATCH] fix websocket issue (#577) --- src/kemal/websocket_handler.cr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kemal/websocket_handler.cr b/src/kemal/websocket_handler.cr index addbecf..b1432a0 100644 --- a/src/kemal/websocket_handler.cr +++ b/src/kemal/websocket_handler.cr @@ -11,9 +11,7 @@ module Kemal def call(context : HTTP::Server::Context) return call_next(context) unless context.ws_route_found? && websocket_upgrade_request?(context) - content = context.websocket.call(context) - context.response.print(content) - context + context.websocket.call(context) end def lookup_ws_route(path : String)