Skip to content

Commit 7c069da

Browse files
committed
fix: use compression when downloading the coder binary
Fixes #31.
1 parent 4f2dcd4 commit 7c069da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/storage.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ export class Storage {
118118
signal: controller.signal,
119119
baseURL: baseURL,
120120
responseType: "stream",
121+
headers: {
122+
"Accept-Encoding": "gzip",
123+
},
124+
decompress: true,
121125
// Ignore all errors so we can catch a 404!
122126
validateStatus: () => true,
123127
})

0 commit comments

Comments
 (0)