Comparing version 0.31.0 to 0.31.1
@@ -247,2 +247,12 @@ import { HTTPError } from '../errors/HTTPError.js'; | ||
let transferredBytes = 0; | ||
if (response.status === 204) { | ||
if (onDownloadProgress) { | ||
onDownloadProgress({ percent: 1, totalBytes, transferredBytes }, new Uint8Array()); | ||
} | ||
return new globalThis.Response(null, { | ||
status: response.status, | ||
statusText: response.statusText, | ||
headers: response.headers, | ||
}); | ||
} | ||
return new globalThis.Response(new globalThis.ReadableStream({ | ||
@@ -249,0 +259,0 @@ async start(controller) { |
{ | ||
"name": "ky", | ||
"version": "0.31.0", | ||
"version": "0.31.1", | ||
"description": "Tiny and elegant HTTP client based on the browser Fetch API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129193
985