Skip to content

Commit

Permalink
fix(core): support xml body (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX authored Aug 7, 2023
1 parent 5a717e1 commit af2baa4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/satori/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export class Router extends KoaRouter {

// create server
const koa = new Koa()
koa.use(require('koa-bodyparser')())
koa.use(require('koa-bodyparser')({
enableTypes: ['json', 'form', 'xml'],
}))
koa.use(this.routes())
koa.use(this.allowedMethods())

Expand Down

0 comments on commit af2baa4

Please sign in to comment.