From 5dd1659180ac78193465cfe5804a6aaaecf441b4 Mon Sep 17 00:00:00 2001 From: hustf Date: Fri, 4 Aug 2017 20:10:58 +0200 Subject: [PATCH] modified: src/WebSockets.jl tabs-> spaces --- src/WebSockets.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/WebSockets.jl b/src/WebSockets.jl index ac2c6a1..f7ccc08 100644 --- a/src/WebSockets.jl +++ b/src/WebSockets.jl @@ -127,8 +127,8 @@ hasprotocol(s::String) = in(s,SUBProtocols) "Used to specify handshake response. See SUBProtocols" function addsubproto(name) - push!(SUBProtocols, string(name)) - return true + push!(SUBProtocols, string(name)) + return true end """ write_fragment(io, islast, data::Array{UInt8}, opcode) @@ -483,10 +483,10 @@ function handle(handler::WebSocketHandler, req::Request, client::HttpServer.Clie sock = WebSocket(client.id, client.sock) handler.handle(req, sock) if isopen(sock) - try - close(sock) - end - end + try + close(sock) + end + end end function is_websocket_handshake(handler::WebSocketHandler, req::Request) is_get = req.method == "GET"