Case insensitive query params
We are using hono-zod-openapi to replace an existing API.
Sadly the old API (written in ASP.Net) appears to have case-insensitive handling of parameters - and we may need to emulate this. Gah.
So we have something like
But I need to support
GET /blah?fooBar=
and all other variants of FooBar
and foobar
etc.
Any ideas? I guess worst case we could add some middleware to downcase all parameters or something.Nico•31d ago
I’m not sure if there is a special way to do it. I would just convert everything to lowercase like you mentioned. I always do it myself as well
Want results from more Discord servers?
More PostsPassword hashingHow to hash password?How to setup Hono with Remix/Cloudflare for Vite dev server?From the documentation for Cloudflare Pages, there is an adapter and a plugin, but it is not clear hValidate response objectsUsing the zod validator middleware it is possible to validate params , query, request body like:
``Hono Oauth Provider with JWT issueHey everyone! I'm not sure if this is the right place for me to post about this but recently I wante