From ad752a580bd16abdef05092e8db325ae906ce2f8 Mon Sep 17 00:00:00 2001 From: sugoidogo Date: Sat, 18 Jan 2025 12:18:27 +0000 Subject: [PATCH] fix static request handling --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 903258c..69716ca 100644 --- a/src/index.js +++ b/src/index.js @@ -220,7 +220,7 @@ export default { } url = new URL(request.url) if (env.serve_static) { - const response = await serve_static(request.clone(), env) + const response = await serve_static(url, env) if (response.ok) { return response }