From 7c069da61028d3082f143828dc7ff9f59ff39970 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 17 Jan 2023 22:05:39 -0600 Subject: [PATCH] fix: use compression when downloading the coder binary Fixes #31. --- src/storage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/storage.ts b/src/storage.ts index ab785d7e..fe3c67ea 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -118,6 +118,10 @@ export class Storage { signal: controller.signal, baseURL: baseURL, responseType: "stream", + headers: { + "Accept-Encoding": "gzip", + }, + decompress: true, // Ignore all errors so we can catch a 404! validateStatus: () => true, })