0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-25 05:07:03 +01:00
hono/benchmarks/utils
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
..
src feat: decode percent-encoded path in getPath (#2714) 2024-05-23 05:44:00 +09:00
.gitignore perf(utils/url): use slice + indexOf for getPath() (#2376) 2024-03-18 17:40:23 +09:00
package.json chore(benchmark): add "loop" script (#2431) 2024-03-28 10:59:49 +09:00