#include "networkaccess.h"
#include "constants.h"
#include <QtGui>
+#if QT_VERSION >= 0x050000
+#include <QtWidgets>
+#endif
namespace The {
NetworkAccess* http();
+ " (" + Constants::WEBSITE + ")";
*/
-const QString USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36";
+const QString USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36";
NetworkReply::NetworkReply(QNetworkReply *networkReply) :
QObject(networkReply),
setupReply();
readTimeoutTimer->start();
return;
- } else qWarning() << "Redirection not supported" << networkReply->url().toEncoded();
+ } else qDebug() << "Redirection not supported" << networkReply->url().toEncoded();
}
if (receivers(SIGNAL(data(QByteArray))) > 0)
return 0;
}
+#ifdef APP_MAC
+ networkReply->ignoreSslErrors();
+#endif
return networkReply;
}