Skip to content
Snippets Groups Projects
Commit 46349208 authored by syuilo's avatar syuilo
Browse files

fix #8894

parent 744db4b5
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ import { ApiError } from './error.js'; ...@@ -7,7 +7,7 @@ import { ApiError } from './error.js';
export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise<void>((res) => { export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise<void>((res) => {
const body = ctx.is('multipart/form-data') const body = ctx.is('multipart/form-data')
? (ctx.req as any).body ? (ctx.request as any).body
: ctx.method === 'GET' : ctx.method === 'GET'
? ctx.query ? ctx.query
: ctx.request.body; : ctx.request.body;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment