From e0e019fbd5b55b93b05f32536cf736ef8c89b8e2 Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 2 Mar 2020 18:24:35 -0600 Subject: [PATCH] Fix mime type for compressed client-side extensions In Firefox using the gzip mime type will (probably correctly) cause it not to decompress while in Chromium it still will (incorrectly). --- src/node/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/http.ts b/src/node/http.ts index cea4aae7..adaa7a2b 100644 --- a/src/node/http.ts +++ b/src/node/http.ts @@ -241,7 +241,7 @@ export abstract class HttpProvider { stream = compress headers["content-encoding"] = "gzip" } - return { stream, filePath, mime: "application/gzip", cache: true, headers } + return { stream, filePath, mime: "application/x-tar", cache: true, headers } } /**