Skip to content

Commit

Permalink
fix: oak body json (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelluardo authored Mar 26, 2024
1 parent c79df4a commit a15b515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convenience/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const nhttp: FrameworkAdapter = (rev) => ({

/** oak web framework */
const oak: FrameworkAdapter = (ctx) => ({
update: ctx.request.body({ type: "json" }).value,
update: ctx.request.body.json(),
header: ctx.request.headers.get(SECRET_HEADER) || undefined,
end: () => {
ctx.response.status = 200;
Expand Down

0 comments on commit a15b515

Please sign in to comment.