mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 19:27:07 +00:00
Changed encoding of images to address https://github.com/nasa/openmctweb/issues/203
This commit is contained in:
parent
a2d06583ca
commit
bd984abc0f
@ -187,8 +187,10 @@ GLOBAL.window = GLOBAL.window || GLOBAL; // nomnoml expects window to be define
|
|||||||
destPath = path.dirname(destination),
|
destPath = path.dirname(destination),
|
||||||
streamOptions = {};
|
streamOptions = {};
|
||||||
if (file.match(/png$/)){
|
if (file.match(/png$/)){
|
||||||
streamOptions.encoding = 'binary';
|
console.log("Encoding " + file + " as binary");
|
||||||
|
streamOptions.encoding = null;
|
||||||
} else {
|
} else {
|
||||||
|
console.log("Encoding " + file + " as utf8");
|
||||||
streamOptions.encoding = 'utf8';
|
streamOptions.encoding = 'utf8';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user