Skip to content

Commit

Permalink
fix: don't assume spplice version in user-agent check
Browse files Browse the repository at this point in the history
  • Loading branch information
p2r3 committed Dec 6, 2024
1 parent ce30900 commit 19ddbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 19ddbba

Please sign in to comment.