aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2016-04-11 23:51:26 +0200
committerFelix Rohrbach <fxrh@gmx.de>2016-04-11 23:51:26 +0200
commit00a73167ca455370868f1f82257420f0cb399a15 (patch)
treecb2ee402b352c236b9bd93ed5d82ce4191c9e8c6 /jobs
parente074be6a42d4fbc9fd76566365f3ef148a8e7bdd (diff)
parentba8b886e1e027ee1eadfc8fd66346bc0ad4a816b (diff)
downloadlibquotient-00a73167ca455370868f1f82257420f0cb399a15.tar.gz
libquotient-00a73167ca455370868f1f82257420f0cb399a15.zip
Merge pull request #2 from KitsuneRal/code-maintenance
Code maintenance
Diffstat (limited to 'jobs')
-rw-r--r--jobs/basejob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index b7e1b718..bf4ade89 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -81,7 +81,7 @@ void BaseJob::start()
QNetworkRequest req = QNetworkRequest(url);
req.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
- req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);\
+ req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
req.setMaximumRedirectsAllowed(10);
#endif
QJsonDocument data = QJsonDocument(this->data());
@@ -124,7 +124,7 @@ void BaseJob::gotReply()
{
if( d->reply->error() != QNetworkReply::NoError )
{
- qDebug() << "NetworkError!!!";
+ qDebug() << "NetworkError!!!" << d->reply->error();
fail( NetworkError, d->reply->errorString() );
return;
}