Commit a0a8dc5
authored
fix: compressed option should be false by default (#567)
The `compressed` option is not enabled by default. There is no code
setting it to true, except where the old `gzip` property is true. I
confirmed this behavior in testing. The documentation for it appears to
have been inadvertently updated when the `timing` option was added in
commit 1d26bb8.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Documentation**
- Updated `README.md` to reflect the change in default value for the
`compressed` option in the `async request(url[, options])` method from
`true` to `false`.
- **Bug Fixes**
- Changed the default behavior of the `compressed` property in request
handling to prevent automatic decoding of `gzip` and `br` responses
unless specified by the user.
- **Chores**
- Deprecated the `ctx` property in `RequestOptions`, recommending the
use of the `opaque` property instead.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 31b5d81 commit a0a8dc5
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments