Skip to content

Commit 321248d

Browse files
authored
chore: typo of context.md (#4)
1 parent a2c9afc commit 321248d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/zh/guide/context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = () => {
3535
const start = Date.now();
3636
await next();
3737
const cost = Date.now() - start;
38-
ctx.set('X-Response-Time, `${cost}ms`);
38+
ctx.set('X-Response-Time', `${cost}ms`);
3939
}
4040
};
4141
```
@@ -558,4 +558,4 @@ describe('test/app/extend/contex.js', () => {
558558
[Router]: ./router.md
559559
[路由]: ./router.md
560560
[配置]: ./config.md
561-
[日志]: ./logger.md
561+
[日志]: ./logger.md

0 commit comments

Comments
 (0)