You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i’d say behaving as expected — url parameters shouldn’t have special characters, otherwise it could behave erratically with routing (e.g.: /hello%2Fworld, would id be hello/world? Then if i go to /hello/world how will it know to escape the slash or not?)
to put it simply, the encoding of URI components in the pathname happens on the requester’s end (postman, insomnia, the browser) and elysia just takes it as it comes without decoding.
i’d say behaving as expected — url parameters shouldn’t have special characters, otherwise it could behave erratically with routing (e.g.: /hello%2Fworld, would id be hello/world? Then if i go to /hello/world how will it know to escape the slash or not?)
to put it simply, the encoding of URI components in the pathname happens on the requester’s end (postman, insomnia, the browser) and elysia just takes it as it comes without decoding.
but it already parsed and go through root endpoint ** shouldn't it just automatically encode it, if the id hello/world then it should go to hello first and then tried to encode world
this is the default behavior for queryString too btw
What version of Elysia is running?
1.1.25
What platform is your computer?
wsl
What steps can reproduce the bug?
What is the expected behavior?
The id in params should be hello world
What do you see instead?
hello%20world
Additional information
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes
The text was updated successfully, but these errors were encountered: