0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 19:26:56 +01:00
Commit Graph

3 Commits

Author SHA1 Message Date
Taku Amano
778ac10e84
feat: decode percent-encoded path in getPath (#2714)
* feat: decode percent-encoded path in `getPath`

* refactor: Stop decoding URIs in the `param()` method, since they are already decoded in `getPath()`

* test: add tests for decoding URI in path

* chore: denoify

* Revert "refactor: Stop decoding URIs in the `param()` method, since they are already decoded in `getPath()`"

This reverts commit 7192497e69.

* refactor: Replace "%25" before applying decodeURI() for avoid double decoding

Co-authored-by: Szymon Marczak <36894700+szmarczak@users.noreply.github.com>

* chore: denoify

* refactor(utils): check existence of "%25" before replacing it with "%2525"

Co-authored-by: Szymon Marczak <36894700+szmarczak@users.noreply.github.com>

* feat(utils/url): Changed URL decoding to skip invalid sequences and decode as much as possible

* chore: denoify

---------

Co-authored-by: Szymon Marczak <36894700+szmarczak@users.noreply.github.com>
2024-05-23 05:44:00 +09:00
Yusuke Wada
13039a9526
chore(benchmark): add "loop" script (#2431) 2024-03-28 10:59:49 +09:00
Yusuke Wada
e675d50046
perf(utils/url): use slice + indexOf for getPath() (#2376)
* perf(utils/url): use `slice` + `indexOf` for `getPath()`

* denoify
2024-03-18 17:40:23 +09:00