0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 11:17:33 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
oussamasf
65f2a3be93
fix(serveStatic): add guard to prevent reading empty folders (#3639)
Fixes  #3628

* fix(serveStatic): add guard to prevent reading empty folders

* fix(serveStatic): remove unnecessary Deno.stat

* test(serveStatic): add test cases related to isDir guard
2024-11-08 10:06:53 +09:00
TATSUNO “Taz” Yasuhiro
c0d782cd64
test(deno): remove duplicated app.get (#3469) 2024-09-30 15:44:32 +09:00
Yusuke Wada
246a06aa1d
feat(serve-static): support absolute root (#3420)
* feat(serve-static): support absolute root

* add bun runtime test

* don't use `Request`

* add code for deno

* remove unnecessay `console.log`

* use `normalizeFilePath` instead of `URL`

* use `URL` for `options.root`

* don't allow directory traversal and fix the behavior when root including `../`
2024-09-24 12:23:35 +09:00
Yusuke Wada
dfbd717263
chore: rename runtime_tests to runtime-tests (#3419)
* chore: rename `runtime_tests` to `runtime-tests`

* fixed GitHub workflow
2024-09-17 14:51:43 +09:00