Skip to content

Commit e0e019f

Browse files
committed
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).
1 parent 77af2a5 commit e0e019f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/http.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export abstract class HttpProvider {
241241
stream = compress
242242
headers["content-encoding"] = "gzip"
243243
}
244-
return { stream, filePath, mime: "application/gzip", cache: true, headers }
244+
return { stream, filePath, mime: "application/x-tar", cache: true, headers }
245245
}
246246

247247
/**

0 commit comments

Comments
 (0)