By default, websockets paths start with ws/
.
This commit is contained in:
parent
b7300ef529
commit
492a4dae34
@ -99,7 +99,7 @@ def ws_http_upgrade(client)
|
||||
headers = headers.map { |key, value| "#{key}: #{value[0]}\r\n" }.join
|
||||
|
||||
# requested service, fd
|
||||
req_service = request.path.lchop
|
||||
req_service = request.path.lchop.sub "ws/", ""
|
||||
|
||||
if req_service.ends_with? ".JSON"
|
||||
Context.context.is_json[client.fd] = true
|
||||
|
Loading…
Reference in New Issue
Block a user