dualfroz 1cf8f269f3 fix: emit final 100% download progress for empty response body
onDownloadProgress never fired a completion event when the response
body was empty (e.g. a 200 with Content-Length: 0), since the final
callback in the transform stream's flush() was gated behind a chunk
having been read. Report the final progress unconditionally, falling
back to an empty chunk when the stream produced none.

Closes #878
2026-08-27 23:35:07 +02:00
S
Description
My contributions to sindresorhus/ky: 1 commits
38 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 100%