|
|
@@ -104,17 +104,17 @@ this.SingleFileBrowser = this.SingleFileBrowser || (() => {
|
|
|
if (!contentType.includes("/")) {
|
|
|
contentType = null;
|
|
|
}
|
|
|
- const charsetValue = matchContentType[1] && matchContentType[1].trim().toLowerCase();
|
|
|
+ const charsetValue = matchContentType[1] && matchContentType[1].trim();
|
|
|
if (charsetValue) {
|
|
|
const matchCharset = charsetValue.match(/^charset=(.*)/);
|
|
|
if (matchCharset && matchCharset[1]) {
|
|
|
charset = docHelper.removeQuotes(matchCharset[1].trim());
|
|
|
}
|
|
|
- if (!charset && options.charset) {
|
|
|
- charset = options.charset.trim();
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
+ if (!charset && options.charset) {
|
|
|
+ charset = options.charset;
|
|
|
+ }
|
|
|
if (options && options.asDataURI) {
|
|
|
try {
|
|
|
if (DEBUG) {
|