Skip to content

Commit

Permalink
fix(server): hono helpers not work on hono middleware (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq authored Feb 5, 2025
1 parent ccd4e42 commit ad0709a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/server/src/adapters/hono/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export function createMiddleware<T extends Context>(handler: FetchHandler<T>, ..
const { matched, response } = await handler.handle(c.req.raw, { ...options, context })

if (matched) {
c.res = response
return
return c.body(response.body, response)
}

await next()
Expand Down

0 comments on commit ad0709a

Please sign in to comment.