Honor the `size` option after following a redirect

This commit is contained in:
Antoni Kepinski 2020-09-05 14:44:41 +02:00 committed by GitHub
parent 64c5c296a0
commit eaff0094c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -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.

View File

@ -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