To pass test: http/tests/loading/text-content-type-with-binary-extension.html
and get around the sort of issue described in: https://bugs.webkit.org/show_bug.cgi?id=17360 [Summary of bug: ContentType text/plain should be ignored if data is binary] Qt or QtWebKit needs to implement some sort of Content-Type processing, maybe that described in: http://tools.ietf.org/html/draft-abarth-mime-sniff-03#section-4 This manipulation should probably be done under case QHttpNetworkReplyPrivate::ReadingHeaderState: in void QHttpNetworkConnectionChannel::receiveReply() where Qt currently manipulates the content-length headers for gzipped responses. Opening up a page of binary garbage is a common headache for users trying to download files so this seems like a worthwhile effort and I'm willing to implement the RFC referenced above. Is the Qt HTTP stack the right place? Would the patch be accepted? _______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
