Skip to content

Commit 5d6a827

Browse files
committed
add docs
1 parent 7b58257 commit 5d6a827

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
unreleased
22
==========
3-
3+
* Add the defaultEncoding option for requests without `Accept-Encoding` header
44
* deps: accepts@~1.3.8
55
- Fix sorting encoding with extra parameters
66
- deps: mime-types@~2.1.34

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ The default value is `zlib.Z_DEFAULT_WINDOWBITS`, or `15`.
139139
See [Node.js documentation](http://nodejs.org/api/zlib.html#zlib_memory_usage_tuning)
140140
regarding the usage.
141141

142+
##### defaultEncoding
143+
144+
This is the default encoding to use when the client does not specify an encoding in the request's [Accept-Encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding) header.
145+
146+
The default value is `identity`.
147+
142148
#### .filter
143149

144150
The default `filter` function. This is used to construct a custom filter

0 commit comments

Comments
 (0)