Honor the `size` option after following a redirect
This commit is contained in:
parent
64c5c296a0
commit
eaff0094c4
|
@ -3,6 +3,12 @@ Changelog
|
|||
|
||||
# 3.x release
|
||||
|
||||
## v3.0.0-beta.9
|
||||
|
||||
**This is an important security release. It is strongly recommended to update as soon as possible.**
|
||||
|
||||
- Fix: honor the `size` option after following a redirect.
|
||||
|
||||
## v3.0.0-beta.8
|
||||
|
||||
- Enhance: remove string-to-arraybuffer (#882).
|
||||
|
@ -96,6 +102,12 @@ Changelog
|
|||
|
||||
# 2.x release
|
||||
|
||||
## v2.6.1
|
||||
|
||||
**This is an important security release. It is strongly recommended to update as soon as possible.**
|
||||
|
||||
- Fix: honor the `size` option after following a redirect.
|
||||
|
||||
## v2.6.0
|
||||
|
||||
- Enhance: `options.agent`, it now accepts a function that returns custom http(s).Agent instance based on current URL, see readme for more information.
|
||||
|
|
|
@ -149,7 +149,8 @@ export default async function fetch(url, options_) {
|
|||
compress: request.compress,
|
||||
method: request.method,
|
||||
body: request.body,
|
||||
signal: request.signal
|
||||
signal: request.signal,
|
||||
size: request.size
|
||||
};
|
||||
|
||||
// HTTP-redirect fetch step 9
|
||||
|
|
Loading…
Reference in New Issue