+ small bug fix (search box was not displayed with HTML mime-type containing a charset)

This commit is contained in:
kelson42 2010-01-24 12:12:37 +00:00
parent 73d568197e
commit 449e1346f0

View File

@ -192,7 +192,7 @@ static int accessHandlerCallback(void *cls,
}
/* Rewrite the content (add the search box) */
if (hasSearchIndex && mimeType == "text/html") {
if (hasSearchIndex && mimeType.find("text/html")) {
appendToFirstOccurence(content, "<head>", HTMLScripts);
appendToFirstOccurence(content, "<body[^>]*>", HTMLDiv);
contentLength = content.size();