Update comment as per review

This commit is contained in:
Dale Glass 2021-11-04 23:53:56 +01:00
parent 5759c76154
commit b4727adecc

View file

@ -166,7 +166,7 @@ bool HTTPManager::handleHTTPRequest(HTTPConnection* connection, const QUrl& url,
localFileData = localFileString.toLocal8Bit();
}
// if this is an shtml file just make the MIME type match HTML so browsers aren't confused
// if this is an shtml, html or htm file just make the MIME type match HTML so browsers aren't confused
// otherwise use the mimeDatabase to look it up
auto suffix = localFileInfo.suffix();
auto mimeType = (suffix == "shtml" || suffix == "html" || suffix == "htm")