Skip to content

Commit 6b5a2d6

Browse files
authored
fix(blob): revert previous change, change log level to debug (#79)
1 parent a32b8fd commit 6b5a2d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/blob.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export async function download(url) {
22
const response = await fetch(url, { mode: 'cors' })
33
const reader = response.body.getReader()
44
const contentLength = +response.headers.get('Content-Length')
5-
const contentEncoding = response.headers.get('Content-Encoding')
65
console.debug('[blob] Downloading', url, contentLength)
76

87
const chunks = []
@@ -14,7 +13,7 @@ export async function download(url) {
1413

1514
const blob = new Blob(chunks)
1615
console.debug('[blob] Downloaded', url, blob.size)
17-
if (!contentEncoding && blob.size !== contentLength) console.warn('[blob] Download size mismatch', {
16+
if (blob.size !== contentLength) console.debug('[blob] Download size mismatch', {
1817
url,
1918
expected: contentLength,
2019
actual: blob.size,

0 commit comments

Comments
 (0)