diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 37855ff..987881a 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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. diff --git a/src/index.js b/src/index.js index c6cdff0..98776f3 100644 --- a/src/index.js +++ b/src/index.js @@ -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