From 19ddbbaa489b78c519b9d6b527d52b9bae41dd6c Mon Sep 17 00:00:00 2001 From: p2r3 Date: Fri, 6 Dec 2024 22:46:42 +0000 Subject: [PATCH] fix: don't assume spplice version in user-agent check --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 309f0d1..dc59e38 100644 --- a/main.js +++ b/main.js @@ -244,7 +244,7 @@ const fetchHandler = async function (req) { } // Handle Spplice calls - if (!userAgent || userAgent.startsWith("Bun/") || userAgent.includes("spplice/2")) { + if (!userAgent || userAgent.startsWith("Bun/") || userAgent.includes("spplice/")) { const path = `${epochtal.file.spplice.repository}/${urlPath[0]}`; if (!fs.existsSync(path) || !urlPath[0]) {