honojs / hono

Web framework built on Web Standards
https://hono.dev
MIT License
17.16k stars 484 forks source link

RPC does not work with optional parameter #2575

Closed NamesMT closed 2 months ago

NamesMT commented 2 months ago

What version of Hono are you using?

4.2.9

What runtime/platform is your app running on?

Node v20

What steps can reproduce the bug?

Declare multiple routes, include one route using optional parameter like /api/:a/:b?

What is the expected behavior?

RPC mode should work normally

What do you see instead?

RPC got fallback to match any string, with no known HTTP methods image

Additional information

No response

yusukebe commented 2 months ago

This is fixed by #2576