未验证 提交 d51f9832 编写于 作者: I Imed Jaberi 提交者: GitHub

docs: fix assert example for response (#1489)

上级 f8b49b85
......@@ -140,7 +140,7 @@ Koa doesn't guard against everything that could be put as a response body -- a f
app.use(async (ctx, next) => {
await next()
ctx.assert.equal('object', typeof ctx, 500, 'some dev did something wrong')
ctx.assert.equal('object', typeof ctx.body, 500, 'some dev did something wrong')
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册