From 704ad859e2a9a80455baa14894d5207c84dc6ce9 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 14 Oct 2024 05:47:27 +0200 Subject: [PATCH] make downloading jars easier --- server.spl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.spl b/server.spl index 9e8fe26..80c10f6 100644 --- a/server.spl +++ b/server.spl @@ -128,7 +128,10 @@ func dir { | with client dir location ; func handle-client { | with client ; client:read; - + client:path:ends-with<".jar"> if { + client:path:sub<0 client:path:len 4 -> client:=path + } + "/refresh" client:path eq if { client:server:cached-files if {