diff --git a/packages/esm-worker/src/index.ts b/packages/esm-worker/src/index.ts index 26a7c417..80d2d06a 100644 --- a/packages/esm-worker/src/index.ts +++ b/packages/esm-worker/src/index.ts @@ -110,6 +110,7 @@ class ESMWorker { waitUntil: (p: Promise) => context.waitUntil(p), withCache, }; + // for deno runtime if (Reflect.has(context, "connInfo")) { Object.assign(ctx, Reflect.get(context, "connInfo")); @@ -122,8 +123,6 @@ class ESMWorker { const subdomain = url.hostname.slice(0, -7); if (subdomain.startsWith("v") && /^\d+$/.test(subdomain.slice(1))) { buildVersion = subdomain; - } else { - return err("Invalid hostname", 400); } }