Skip to content

Commit

Permalink
modified: src/WebSockets.jl tabs-> spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hustf committed Aug 4, 2017
1 parent 8d23b9d commit 5dd1659
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/WebSockets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 5dd1659

Please sign in to comment.