Comparing version 4.2.6 to 4.2.7
@@ -34,4 +34,3 @@ "use strict"; | ||
} | ||
const url = new URL(c.req.url); | ||
let filename = options.path ?? decodeURI(url.pathname); | ||
let filename = options.path ?? decodeURI(c.req.path); | ||
filename = options.rewriteRequestPath ? options.rewriteRequestPath(filename) : filename; | ||
@@ -38,0 +37,0 @@ const root = options.root; |
@@ -12,4 +12,3 @@ // src/middleware/serve-static/index.ts | ||
} | ||
const url = new URL(c.req.url); | ||
let filename = options.path ?? decodeURI(url.pathname); | ||
let filename = options.path ?? decodeURI(c.req.path); | ||
filename = options.rewriteRequestPath ? options.rewriteRequestPath(filename) : filename; | ||
@@ -16,0 +15,0 @@ const root = options.root; |
{ | ||
"name": "hono", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"description": "Ultrafast web framework for the Edges", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
784312
21886