1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 04:35:25 +00:00

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).
This commit is contained in:
Asher 2020-03-02 18:24:35 -06:00
parent 77af2a5b0e
commit e0e019fbd5
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -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 }
}
/**