Skip to content

Commit

Permalink
fix: koa middleware fails with async
Browse files Browse the repository at this point in the history
  • Loading branch information
ayZagen committed Sep 21, 2021
1 parent 7fa5336 commit e57275f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ export class Cookies {
= ctx.req.cookies
= ctx.res.cookies
= ctx.request.cookies
= ctx.response.cookies = new Cookies(ctx.req, ctx.res, options)
next()
= ctx.response.cookies = new Cookies(ctx.req, ctx.res, options);
return next()
}
}

Expand Down

0 comments on commit e57275f

Please sign in to comment.