Parcourir la source

fix infinite loop

Gildas il y a 5 ans
Parent
commit
a22fa89127
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -448,7 +448,7 @@ class Processor {
 					charset = charsetDeclaration.split("=")[1].trim().toLowerCase();
 				}
 			});
-			if (charset && charset != content.charset) {
+			if (charset && charset.toLowerCase() != content.charset.toLowerCase()) {
 				return this.loadPage(pageContent, charset);
 			}
 		}