Closed MarioCares closed 2 months ago
4.2.9
Cloudflare Workers
app.get('/', async (c) => { return c.text("route / GET"); });
app.get('/:path', async (c) => { return c.text("route / with path GET"); });
app.post('/', async (c) => { return c.text("route / POST"); });
When POST to / it should respond: route / POST
route / GET
No response
It was a cloudflare problem. Everything (POST, PUT, DELETE) was redirected to GET request.
What version of Hono are you using?
4.2.9
What runtime/platform is your app running on?
Cloudflare Workers
What steps can reproduce the bug?
app.get('/', async (c) => { return c.text("route / GET"); });
app.get('/:path', async (c) => { return c.text("route / with path GET"); });
app.post('/', async (c) => { return c.text("route / POST"); });
What is the expected behavior?
When POST to / it should respond: route / POST
What do you see instead?
route / GET
Additional information
No response