fix websocket issue (#577)
This commit is contained in:
parent
2e749a2987
commit
dfe7dca08f
1 changed files with 1 additions and 3 deletions
|
@ -11,9 +11,7 @@ module Kemal
|
||||||
|
|
||||||
def call(context : HTTP::Server::Context)
|
def call(context : HTTP::Server::Context)
|
||||||
return call_next(context) unless context.ws_route_found? && websocket_upgrade_request?(context)
|
return call_next(context) unless context.ws_route_found? && websocket_upgrade_request?(context)
|
||||||
content = context.websocket.call(context)
|
context.websocket.call(context)
|
||||||
context.response.print(content)
|
|
||||||
context
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def lookup_ws_route(path : String)
|
def lookup_ws_route(path : String)
|
||||||
|
|
Loading…
Reference in a new issue