Skip to content

Commit 219bf22

Browse files
neighborhood999dead-horse
authored andcommitted
docs(context): update link (#1354)
* docs(context): update link * docs(response): add code highlight
1 parent 52a6737 commit 219bf22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/context.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Koa uses the [cookies](https://github.com/pillarjs/cookies) module where options
8787
- `httpOnly` server-accessible cookie, __true__ by default
8888
- `overwrite` a boolean indicating whether to overwrite previously set cookies of the same name (__false__ by default). If this is true, all cookies set during the same request with the same name (regardless of path or domain) are filtered out of the Set-Cookie header when setting this cookie.
8989

90-
Koa uses the [cookies](https://github.com/jed/cookies) module where options are simply passed.
90+
Koa uses the [cookies](https://github.com/pillarjs/cookies) module where options are simply passed.
9191

9292
### ctx.throw([status], [msg], [properties])
9393

docs/api/response.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ If `response.status` has not been set, Koa will automatically set the status to
126126

127127
Koa doesn't guard against everything that could be put as a response body -- a function doesn't serialise meaningfully, returning a boolean may make sense based on your application, and while an error works, it may not work as intended as some properties of an error are not enumerable. We recommend adding middleware in your app that asserts body types per app. A sample middleware might be:
128128

129-
```
129+
```js
130130
app.use(async (ctx, next) => {
131131
await next()
132132

0 commit comments

Comments
 (0)