Skip to content

Commit 4470134

Browse files
authored
docs(readme): fix "this" usage and link (#95)
1 parent 4a228fa commit 4470134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The options are passed to `zlib`: http://nodejs.org/api/zlib.html#zlib_options
2929
### filter
3030

3131
An optional function that checks the response content type to decide whether to compress.
32-
By default, it uses [compressible](https://github.com/expressjs/compressible).
32+
By default, it uses [compressible](https://github.com/jshttp/compressible).
3333

3434
### threshold
3535

@@ -38,8 +38,8 @@ Default `1024` bytes or `1kb`.
3838

3939
## Manually turning compression on and off
4040

41-
You can always enable compression by setting `this.compress = true`.
42-
You can always disable compression by setting `this.compress = false`.
41+
You can always enable compression by setting `ctx.compress = true`.
42+
You can always disable compression by setting `ctx.compress = false`.
4343
This bypasses the filter check.
4444

4545
```js

0 commit comments

Comments
 (0)