In got.stream, downloadProgress fired when redirects happens. Every time redirect happens, the progress report from 0 (with total of content-length, undefined if not any) to 1 instantly (with total of 0). Related issue: https://github.com/electron/fiddle-core/issues/59
Node.js version: v20.10.0
OS & version: Windows 11 23H2 (22631.3296)
Actual behavior
downloadProgress triggered every time redirect happens. This makes the progress percent from 0 to 1 and repeat until response.
Expected behavior
downloadProgress should report when it only receive a proper response, not redirect.
Describe the bug
In
got.stream
,downloadProgress
fired when redirects happens. Every time redirect happens, the progress report from 0 (withtotal
ofcontent-length
,undefined
if not any) to 1 instantly (withtotal
of 0). Related issue: https://github.com/electron/fiddle-core/issues/59Actual behavior
downloadProgress
triggered every time redirect happens. This makes the progress percent from 0 to 1 and repeat until response.Expected behavior
downloadProgress
should report when it only receive a proper response, not redirect.Code to reproduce
Checklist