Closed chenyulun closed 6 years ago
hi @chenyulun did you solve this issue?
Have it right now, cannot get what's wrong.
ctx.body
is the body that gets returned to client (response.body
). What you need is ctx.request.body
. In my case however that also returns empty :)
My solution was to swith to koa-body
instead. That works perfectly.
ctx.body // undefined
ctx.body // {"user":"people"}