fix(request): return empty string for empty catch-all param (#4395)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* test: add catch-all route test for empty segment handling fix: ensure undefined parameters are handled correctly in HonoRequest * ci: apply automated fixes * fix(request): handle empty string parameters in req.param() and decoding logic * test: add catch-all route test for empty segment handling fix: ensure undefined parameters are handled correctly in HonoRequest * ci: apply automated fixes * fix: return empty string for missing params in req.param() method * fix(param): simplify HonoRequest instantiation for zero-length match test * test: add catch-all route test for empty segment handling fix: ensure undefined parameters are handled correctly in HonoRequest * ci: apply automated fixes * correct the logic and the tests Co-authored-by: Taku Amano <taku@taaas.jp> * remove unnecessary logics ---------
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
- Co-authored-by: Taku Amano <taku@taaas.jp>
Diff stats
3 files+49 added−2 removed
- tests:+47 added−0 removed
- other:+2 added−2 removed