fix websocket issue (#577)

This commit is contained in:
Anton Maminov 2020-07-08 14:42:08 +03:00 committed by GitHub
parent 2e749a2987
commit dfe7dca08f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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)