We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21aebc7 commit 37c3dddCopy full SHA for 37c3ddd
src/use/koa.ts
@@ -120,9 +120,9 @@ export function createHandler<Context extends OperationContext = undefined>(
120
method: ctx.method,
121
headers: ctx.headers,
122
body: () => {
123
- if (ctx.body) {
+ if (ctx.request.body) {
124
// in case koa has a body parser
125
- return ctx.body;
+ return ctx.request.body as any;
126
}
127
return new Promise<string>((resolve) => {
128
let body = '';
0 commit comments