3
0
Fork 0

By default, websockets paths start with `ws/`.

dev
Karchnu 2020-08-21 03:00:04 +02:00
parent b7300ef529
commit 492a4dae34
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ def ws_http_upgrade(client)
headers = headers.map { |key, value| "#{key}: #{value[0]}\r\n" }.join headers = headers.map { |key, value| "#{key}: #{value[0]}\r\n" }.join
# requested service, fd # requested service, fd
req_service = request.path.lchop req_service = request.path.lchop.sub "ws/", ""
if req_service.ends_with? ".JSON" if req_service.ends_with? ".JSON"
Context.context.is_json[client.fd] = true Context.context.is_json[client.fd] = true