SVN commit 850486 by orlovich: Emulate a quirk of mozilla's content-type parsing and completely ignore content-type headers without a /, even for purposes of mimetype validation in strict mode. Makes www.monosit.ro show up fine (I won't say "fixes it", since The Real Fix(tm) would be for the server to be configured properly) BUG:169523 M +7 -1 loader.cpp --- branches/KDE/4.1/kdelibs/khtml/misc/loader.cpp #850485:850486 @@ -1371,7 +1371,13 @@ if (!r) return; CachedObject *o = r->object; - o->m_mimetype = s; + + // Mozilla plain ignores any mimetype that doesn't have / in it, and handles it as "", + // including when being picky about mimetypes. Match that for better compatibility with broken servers. + if (s.contains('/')) + o->m_mimetype = s; + else + o->m_mimetype = ""; } void Loader::slotFinished( KJob* job )