Skip to content

Commit

Permalink
windows/macos use non-standard application/x-gzip MIME type for .gz f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
cd-rite committed Oct 21, 2024
1 parent 7aba100 commit 2a2b851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/js/SM/AppData.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ SM.AppData.doReplace = function () {
rp.updateStatusText('', true, true)

let objectStream
if (fileObj.type === 'application/gzip') {
if (fileObj.type === 'application/gzip' || fileObj.type === 'application/x-gzip') {
objectStream = fileObj.stream()
.pipeThrough(new SM.AppData.FileReaderProgressStream(fileObj.size, rp.updateProgress.bind(rp)))
.pipeThrough(new DecompressionStream("gzip"))
Expand Down

0 comments on commit 2a2b851

Please sign in to comment.