We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a32b8fd commit 6b5a2d6Copy full SHA for 6b5a2d6
src/utils/blob.js
@@ -2,7 +2,6 @@ export async function download(url) {
2
const response = await fetch(url, { mode: 'cors' })
3
const reader = response.body.getReader()
4
const contentLength = +response.headers.get('Content-Length')
5
- const contentEncoding = response.headers.get('Content-Encoding')
6
console.debug('[blob] Downloading', url, contentLength)
7
8
const chunks = []
@@ -14,7 +13,7 @@ export async function download(url) {
14
13
15
const blob = new Blob(chunks)
16
console.debug('[blob] Downloaded', url, blob.size)
17
- if (!contentEncoding && blob.size !== contentLength) console.warn('[blob] Download size mismatch', {
+ if (blob.size !== contentLength) console.debug('[blob] Download size mismatch', {
18
url,
19
expected: contentLength,
20
actual: blob.size,
0 commit comments