|
|
@ -1317,11 +1317,13 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
void unsupportedContent(QNetworkReply* reply) { |
|
|
|
void unsupportedContent(QNetworkReply* reply) { |
|
|
|
TRC; LOG<<reply->header(QNetworkRequest::ContentTypeHeader).toString(); |
|
|
|
TRC; LOG<<reply->header(QNetworkRequest::ContentTypeHeader).toString(); |
|
|
|
LOG<<"Status:"<<_downloadManager->networkError(reply->error()); |
|
|
|
LOG<<"Status:"<<_downloadManager->networkError(reply->error()); |
|
|
|
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
|
|
|
QList<QNetworkReply::RawHeaderPair> rh(reply->rawHeaderPairs()); |
|
|
|
QList<QNetworkReply::RawHeaderPair> rh(reply->rawHeaderPairs()); |
|
|
|
for(QList<QNetworkReply::RawHeaderPair>::iterator it(rh.begin()); |
|
|
|
for(QList<QNetworkReply::RawHeaderPair>::iterator it(rh.begin()); |
|
|
|
it!=rh.end(); ++it) { |
|
|
|
it!=rh.end(); ++it) { |
|
|
|
LOG<<"RawHeader:"<<it->first<<it->second; |
|
|
|
LOG<<"RawHeader:"<<it->first<<it->second; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
handleContent(reply); |
|
|
|
handleContent(reply); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|