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
|
# 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
|
## v3.0.0-beta.8
|
||||||
|
|
||||||
- Enhance: remove string-to-arraybuffer (#882).
|
- Enhance: remove string-to-arraybuffer (#882).
|
||||||
|
@ -96,6 +102,12 @@ Changelog
|
||||||
|
|
||||||
# 2.x release
|
# 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
|
## 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.
|
- 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,
|
compress: request.compress,
|
||||||
method: request.method,
|
method: request.method,
|
||||||
body: request.body,
|
body: request.body,
|
||||||
signal: request.signal
|
signal: request.signal,
|
||||||
|
size: request.size
|
||||||
};
|
};
|
||||||
|
|
||||||
// HTTP-redirect fetch step 9
|
// HTTP-redirect fetch step 9
|
||||||
|
|
Loading…
Reference in New Issue