File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ The options are passed to `zlib`: http://nodejs.org/api/zlib.html#zlib_options
29
29
### filter
30
30
31
31
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 ) .
33
33
34
34
### threshold
35
35
@@ -38,8 +38,8 @@ Default `1024` bytes or `1kb`.
38
38
39
39
## Manually turning compression on and off
40
40
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` .
43
43
This bypasses the filter check.
44
44
45
45
``` js
You can’t perform that action at this time.
0 commit comments