mirror of https://github.com/coder/code-server.git
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:
parent
77af2a5b0e
commit
e0e019fbd5
|
@ -241,7 +241,7 @@ export abstract class HttpProvider {
|
||||||
stream = compress
|
stream = compress
|
||||||
headers["content-encoding"] = "gzip"
|
headers["content-encoding"] = "gzip"
|
||||||
}
|
}
|
||||||
return { stream, filePath, mime: "application/gzip", cache: true, headers }
|
return { stream, filePath, mime: "application/x-tar", cache: true, headers }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue