Ver Fonte

fix infinite loop

Gildas há 5 anos atrás
pai
commit
a22fa89127
1 ficheiros alterados com 1 adições e 1 exclusões
  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);
 			}
 		}