diff --git a/autotests/calendar/data/calendar1_create_request.txt b/autotests/calendar/data/calendar1_create_request.txt --- a/autotests/calendar/data/calendar1_create_request.txt +++ b/autotests/calendar/data/calendar1_create_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/calendar/v3/calendars +POST https://www.googleapis.com/calendar/v3/calendars?prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/calendar1_fetch_request.txt b/autotests/calendar/data/calendar1_fetch_request.txt --- a/autotests/calendar/data/calendar1_fetch_request.txt +++ b/autotests/calendar/data/calendar1_fetch_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/calendar/v3/users/me/calendarList/averylongtvshowscalendarid@group.calendar.google.com +GET https://www.googleapis.com/calendar/v3/users/me/calendarList/averylongtvshowscalendarid@group.calendar.google.com?prettyPrint=false diff --git a/autotests/calendar/data/calendar1_modify_request.txt b/autotests/calendar/data/calendar1_modify_request.txt --- a/autotests/calendar/data/calendar1_modify_request.txt +++ b/autotests/calendar/data/calendar1_modify_request.txt @@ -1,4 +1,4 @@ -PUT https://www.googleapis.com/calendar/v3/calendars/averylongtvshowscalendarid@group.calendar.google.com +PUT https://www.googleapis.com/calendar/v3/calendars/averylongtvshowscalendarid@group.calendar.google.com?prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/calendar2_create_request.txt b/autotests/calendar/data/calendar2_create_request.txt --- a/autotests/calendar/data/calendar2_create_request.txt +++ b/autotests/calendar/data/calendar2_create_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/calendar/v3/calendars +POST https://www.googleapis.com/calendar/v3/calendars?prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/calendar2_modify_request.txt b/autotests/calendar/data/calendar2_modify_request.txt --- a/autotests/calendar/data/calendar2_modify_request.txt +++ b/autotests/calendar/data/calendar2_modify_request.txt @@ -1,4 +1,4 @@ -PUT https://www.googleapis.com/calendar/v3/calendars/MockAccount +PUT https://www.googleapis.com/calendar/v3/calendars/MockAccount?prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/calendars_fetch_page1_request.txt b/autotests/calendar/data/calendars_fetch_page1_request.txt --- a/autotests/calendar/data/calendars_fetch_page1_request.txt +++ b/autotests/calendar/data/calendars_fetch_page1_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/calendar/v3/users/me/calendarList +GET https://www.googleapis.com/calendar/v3/users/me/calendarList?prettyPrint=false diff --git a/autotests/calendar/data/calendars_fetch_page2_request.txt b/autotests/calendar/data/calendars_fetch_page2_request.txt --- a/autotests/calendar/data/calendars_fetch_page2_request.txt +++ b/autotests/calendar/data/calendars_fetch_page2_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/calendar/v3/users/me/calendarList?pageToken=Eh0KEmc6MDAwMDAwMTQyNjVlYWI3MhDond_S9JTaAg%3D%3D +GET https://www.googleapis.com/calendar/v3/users/me/calendarList?pageToken=Eh0KEmc6MDAwMDAwMTQyNjVlYWI3MhDond_S9JTaAg%3D%3D&prettyPrint=false diff --git a/autotests/calendar/data/event1_create_request.txt b/autotests/calendar/data/event1_create_request.txt --- a/autotests/calendar/data/event1_create_request.txt +++ b/autotests/calendar/data/event1_create_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?sendUpdates=all +POST https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?sendUpdates=all&prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/event1_fetch_request.txt b/autotests/calendar/data/event1_fetch_request.txt --- a/autotests/calendar/data/event1_fetch_request.txt +++ b/autotests/calendar/data/event1_fetch_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/calendar/v3/calendars/MockAccount/events/3if6lf59tove1e037baa75l54t +GET https://www.googleapis.com/calendar/v3/calendars/MockAccount/events/3if6lf59tove1e037baa75l54t?prettyPrint=false diff --git a/autotests/calendar/data/event1_modify_request.txt b/autotests/calendar/data/event1_modify_request.txt --- a/autotests/calendar/data/event1_modify_request.txt +++ b/autotests/calendar/data/event1_modify_request.txt @@ -1,4 +1,4 @@ -PUT https://www.googleapis.com/calendar/v3/calendars/MockAccount/events/3if6lf59tove1e037baa75l54t?sendUpdates=all +PUT https://www.googleapis.com/calendar/v3/calendars/MockAccount/events/3if6lf59tove1e037baa75l54t?sendUpdates=all&prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/event2_create_request.txt b/autotests/calendar/data/event2_create_request.txt --- a/autotests/calendar/data/event2_create_request.txt +++ b/autotests/calendar/data/event2_create_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?sendUpdates=all +POST https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?sendUpdates=all&prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/event2_modify_request.txt b/autotests/calendar/data/event2_modify_request.txt --- a/autotests/calendar/data/event2_modify_request.txt +++ b/autotests/calendar/data/event2_modify_request.txt @@ -1,4 +1,4 @@ -PUT https://www.googleapis.com/calendar/v3/calendars/MockAccount/events/_60o3iopicdhjib9g6ss32b9k70p68b9ocdhm8b9ocphjioj6clh36c9j70?sendUpdates=all +PUT https://www.googleapis.com/calendar/v3/calendars/MockAccount/events/_60o3iopicdhjib9g6ss32b9k70p68b9ocdhm8b9ocphjioj6clh36c9j70?sendUpdates=all&prettyPrint=false Content-Type: application/json { diff --git a/autotests/calendar/data/events_fetch_page1_request.txt b/autotests/calendar/data/events_fetch_page1_request.txt --- a/autotests/calendar/data/events_fetch_page1_request.txt +++ b/autotests/calendar/data/events_fetch_page1_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?showDeleted=true +GET https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?showDeleted=true&prettyPrint=false diff --git a/autotests/calendar/data/events_fetch_page2_request.txt b/autotests/calendar/data/events_fetch_page2_request.txt --- a/autotests/calendar/data/events_fetch_page2_request.txt +++ b/autotests/calendar/data/events_fetch_page2_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?showDeleted=true&pageToken=ClEKQ182a3MzaWRoazZvcWpnYzlsNnNyM2NjcGc2OHBqMmUyMGRsbm00cWJjY2xwbmlyajM1cGptdXJyN2RoaWlzb3JmZGsYASCAgIDqg5PLwhIaDQgAEgAY-KP05dmb2gI%3D +GET https://www.googleapis.com/calendar/v3/calendars/MockAccount/events?showDeleted=true&prettyPrint=false&pageToken=ClEKQ182a3MzaWRoazZvcWpnYzlsNnNyM2NjcGc2OHBqMmUyMGRsbm00cWJjY2xwbmlyajM1cGptdXJyN2RoaWlzb3JmZGsYASCAgIDqg5PLwhIaDQgAEgAY-KP05dmb2gI%3D diff --git a/autotests/calendar/data/freebusy1_query_request.txt b/autotests/calendar/data/freebusy1_query_request.txt --- a/autotests/calendar/data/freebusy1_query_request.txt +++ b/autotests/calendar/data/freebusy1_query_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/calendar/v3/freeBusy +POST https://www.googleapis.com/calendar/v3/freeBusy?prettyPrint=false Content-Type: application/json { diff --git a/autotests/contacts/data/contact1_create_request.txt b/autotests/contacts/data/contact1_create_request.txt --- a/autotests/contacts/data/contact1_create_request.txt +++ b/autotests/contacts/data/contact1_create_request.txt @@ -1,4 +1,4 @@ -POST https://www.google.com/m8/feeds/contacts/MockAccount/full +POST https://www.google.com/m8/feeds/contacts/MockAccount/full?prettyPrint=false GData-Version: 3.0 Content-Type: application/atom+xml diff --git a/autotests/contacts/data/contact1_fetch_photo_request.txt b/autotests/contacts/data/contact1_fetch_photo_request.txt --- a/autotests/contacts/data/contact1_fetch_photo_request.txt +++ b/autotests/contacts/data/contact1_fetch_photo_request.txt @@ -1,2 +1,2 @@ -GET https://www.google.com/m8/feeds/photos/media/MockAccount/68f6ee7a8a57c4cc +GET https://www.google.com/m8/feeds/photos/media/MockAccount/68f6ee7a8a57c4cc?prettyPrint=false GData-Version: 3.0 diff --git a/autotests/contacts/data/contact1_fetch_request.txt b/autotests/contacts/data/contact1_fetch_request.txt --- a/autotests/contacts/data/contact1_fetch_request.txt +++ b/autotests/contacts/data/contact1_fetch_request.txt @@ -1,2 +1,2 @@ -GET https://www.google.com/m8/feeds/contacts/MockAccount/full/68f6ee7a8a57c4cc?alt=json +GET https://www.google.com/m8/feeds/contacts/MockAccount/full/68f6ee7a8a57c4cc?alt=json&prettyPrint=false GData-Version: 3.0 diff --git a/autotests/contacts/data/contact1_modify_request.txt b/autotests/contacts/data/contact1_modify_request.txt --- a/autotests/contacts/data/contact1_modify_request.txt +++ b/autotests/contacts/data/contact1_modify_request.txt @@ -1,4 +1,4 @@ -PUT https://www.google.com/m8/feeds/contacts/MockAccount/full/68f6ee7a8a57c4cc +PUT https://www.google.com/m8/feeds/contacts/MockAccount/full/68f6ee7a8a57c4cc?prettyPrint=false GData-Version: 3.0 If-Match: * Content-Type: application/atom+xml diff --git a/autotests/contacts/data/contact2_create_photo_request.txt b/autotests/contacts/data/contact2_create_photo_request.txt index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@>("scenarios"); QTest::newRow("success") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/request/data")), QNetworkAccessManager::PostOperation, + { QUrl(QStringLiteral("https://example.test/request/data?prettyPrint=false")), QNetworkAccessManager::PostOperation, "New data", 200, "Data created" } }; QTest::newRow("creation failed") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/request/data")), QNetworkAccessManager::PostOperation, + { QUrl(QStringLiteral("https://example.test/request/data?prettyPrint=false")), QNetworkAccessManager::PostOperation, "New data", KGAPI2::Forbidden, {} } }; QTest::newRow("redirect") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/request/data")), QNetworkAccessManager::PostOperation, + { QUrl(QStringLiteral("https://example.test/request/data?prettyPrint=false")), QNetworkAccessManager::PostOperation, "New data", KGAPI2::TemporarilyMoved, "https://example.test/moved/data" }, - { QUrl(QStringLiteral("https://example.test/moved/data")), QNetworkAccessManager::PostOperation, + { QUrl(QStringLiteral("https://example.test/moved/data?prettyPrint=false")), QNetworkAccessManager::PostOperation, "New data", KGAPI2::OK, "Data created" } }; } diff --git a/autotests/core/data/accountinfo_fetch_request.txt b/autotests/core/data/accountinfo_fetch_request.txt --- a/autotests/core/data/accountinfo_fetch_request.txt +++ b/autotests/core/data/accountinfo_fetch_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/oauth2/v1/userinfo +GET https://www.googleapis.com/oauth2/v1/userinfo?prettyPrint=false diff --git a/autotests/core/data/accountmanager_part1_request.txt b/autotests/core/data/accountmanager_part1_request.txt --- a/autotests/core/data/accountmanager_part1_request.txt +++ b/autotests/core/data/accountmanager_part1_request.txt @@ -1,4 +1,4 @@ -POST https://accounts.google.com/o/oauth2/token +POST https://accounts.google.com/o/oauth2/token?prettyPrint=false Content-Type: application/x-www-form-urlencoded client_id=Key1&client_secret=Secret1&code=TheCakeIsALie&redirect_uri=http://127.0.0.1:42413&grant_type=authorization_code \ No newline at end of file diff --git a/autotests/core/data/accountmanager_refresh_request.txt b/autotests/core/data/accountmanager_refresh_request.txt --- a/autotests/core/data/accountmanager_refresh_request.txt +++ b/autotests/core/data/accountmanager_refresh_request.txt @@ -1,4 +1,4 @@ -POST https://accounts.google.com/o/oauth2/token +POST https://accounts.google.com/o/oauth2/token?prettyPrint=false Content-Type: application/x-www-form-urlencoded client_id=Key1&client_secret=Secret1&refresh_token=FakeRefreshToken&grant_type=refresh_token \ No newline at end of file diff --git a/autotests/core/fetchjobtest.cpp b/autotests/core/fetchjobtest.cpp --- a/autotests/core/fetchjobtest.cpp +++ b/autotests/core/fetchjobtest.cpp @@ -87,19 +87,19 @@ QTest::addColumn>("scenarios"); QTest::newRow("success") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/request/data")), QNetworkAccessManager::GetOperation, + { QUrl(QStringLiteral("https://example.test/request/data?prettyPrint=false")), QNetworkAccessManager::GetOperation, {}, 200, "Test Response", false } }; QTest::newRow("not found") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/does/not/exist")), QNetworkAccessManager::GetOperation, + { QUrl(QStringLiteral("https://example.test/does/not/exist?prettyPrint=false")), QNetworkAccessManager::GetOperation, {}, KGAPI2::NotFound, {}, false } }; QTest::newRow("redirect") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/request/data")), QNetworkAccessManager::GetOperation, + { QUrl(QStringLiteral("https://example.test/request/data?prettyPrint=false")), QNetworkAccessManager::GetOperation, {}, KGAPI2::TemporarilyMoved, "https://example.test/moved/data", false }, - { QUrl(QStringLiteral("https://example.test/moved/data")), QNetworkAccessManager::GetOperation, + { QUrl(QStringLiteral("https://example.test/moved/data?prettyPrint=false")), QNetworkAccessManager::GetOperation, {}, KGAPI2::OK, "Here's your data", false } }; } @@ -123,12 +123,12 @@ QTest::addColumn>("scenarios"); QTest::newRow("success") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/request/data")), QNetworkAccessManager::GetOperation, + { QUrl(QStringLiteral("https://example.test/request/data?prettyPrint=false")), QNetworkAccessManager::GetOperation, {}, 200, "Response" } }; QTest::newRow("token expired") << Scenarios{ - { QUrl(QStringLiteral("https://example.test/request/data")), QNetworkAccessManager::GetOperation, + { QUrl(QStringLiteral("https://example.test/request/data?prettyPrint=false")), QNetworkAccessManager::GetOperation, {}, KGAPI2::Unauthorized, {} } }; } diff --git a/autotests/drive/data/about_fetch_request.txt b/autotests/drive/data/about_fetch_request.txt --- a/autotests/drive/data/about_fetch_request.txt +++ b/autotests/drive/data/about_fetch_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/drive/v2/about?includeSubscribed=true +GET https://www.googleapis.com/drive/v2/about?includeSubscribed=true&prettyPrint=false diff --git a/autotests/drive/data/change1_fetch_request.txt b/autotests/drive/data/change1_fetch_request.txt --- a/autotests/drive/data/change1_fetch_request.txt +++ b/autotests/drive/data/change1_fetch_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/drive/v2/changes/194?supportsAllDrives=true +GET https://www.googleapis.com/drive/v2/changes/194?supportsAllDrives=true&prettyPrint=false diff --git a/autotests/drive/data/changes_fetch_page1_request.txt b/autotests/drive/data/changes_fetch_page1_request.txt --- a/autotests/drive/data/changes_fetch_page1_request.txt +++ b/autotests/drive/data/changes_fetch_page1_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/drive/v2/changes?includeDeleted=true&includeSubscribed=true&includeItemsFromAllDrives=true&supportsAllDrives=true +GET https://www.googleapis.com/drive/v2/changes?includeDeleted=true&includeSubscribed=true&includeItemsFromAllDrives=true&supportsAllDrives=true&prettyPrint=false diff --git a/autotests/drive/data/changes_fetch_page2_request.txt b/autotests/drive/data/changes_fetch_page2_request.txt --- a/autotests/drive/data/changes_fetch_page2_request.txt +++ b/autotests/drive/data/changes_fetch_page2_request.txt @@ -1 +1 @@ -GET https://www.googleapis.com/drive/v2/changes?includeDeleted=true&includeSubscribed=true&pageToken=195 +GET https://www.googleapis.com/drive/v2/changes?includeDeleted=true&includeSubscribed=true&pageToken=195&prettyPrint=false diff --git a/autotests/drive/data/file1_copy_request.txt b/autotests/drive/data/file1_copy_request.txt --- a/autotests/drive/data/file1_copy_request.txt +++ b/autotests/drive/data/file1_copy_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/drive/v2/files/abcdefghijklmnopqrstuvwxyz/copy?convert=false&ocr=false&pinned=false +POST https://www.googleapis.com/drive/v2/files/abcdefghijklmnopqrstuvwxyz/copy?convert=false&ocr=false&pinned=false&prettyPrint=false Content-Type: application/json { diff --git a/autotests/drive/data/file1_create_request.txt b/autotests/drive/data/file1_create_request.txt --- a/autotests/drive/data/file1_create_request.txt +++ b/autotests/drive/data/file1_create_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/drive/v2/files?convert=false&ocr=false&pinned=false&useContentAsIndexableText=false&supportsAllDrives=true +POST https://www.googleapis.com/drive/v2/files?convert=false&ocr=false&pinned=false&useContentAsIndexableText=false&supportsAllDrives=true&prettyPrint=false Content-Type: application/json { diff --git a/autotests/drive/data/file2_copy_request.txt b/autotests/drive/data/file2_copy_request.txt --- a/autotests/drive/data/file2_copy_request.txt +++ b/autotests/drive/data/file2_copy_request.txt @@ -1,4 +1,4 @@ -POST https://www.googleapis.com/drive/v2/files/abc123def456ghi789/copy?convert=false&ocr=false&pinned=false +POST https://www.googleapis.com/drive/v2/files/abc123def456ghi789/copy?convert=false&ocr=false&pinned=false&prettyPrint=false Content-Type: application/json { diff --git a/autotests/drive/data/file2_create_request.txt b/autotests/drive/data/file2_create_request.txt index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@ #include #include #include @@ -130,6 +131,13 @@ if (contentType == QLatin1String("modifyImage")) { accessManager->put(r, data); } else if (contentType == QLatin1String("deleteImage")) { + // Delete requests have no response body so there isn't anything to pretty print + QUrl cleanedUrl = r.url(); + QUrlQuery cleanedQuery(cleanedUrl); + cleanedQuery.removeAllQueryItems(Job::StandardParams::PrettyPrint); + cleanedUrl.setQuery(cleanedQuery); + r.setUrl(cleanedUrl); + accessManager->deleteResource(r); } else { r.setHeader(QNetworkRequest::ContentTypeHeader, contentType); diff --git a/src/core/deletejob.cpp b/src/core/deletejob.cpp --- a/src/core/deletejob.cpp +++ b/src/core/deletejob.cpp @@ -22,6 +22,7 @@ #include "deletejob.h" +#include #include #include @@ -58,6 +59,13 @@ r.setRawHeader("If-Match", "*"); } + // Delete requests have no response body so there isn't anything to pretty print + QUrl cleanedUrl = r.url(); + QUrlQuery cleanedQuery(cleanedUrl); + cleanedQuery.removeAllQueryItems(Job::StandardParams::PrettyPrint); + cleanedUrl.setQuery(cleanedQuery); + r.setUrl(cleanedUrl); + accessManager->deleteResource(r); } diff --git a/src/core/job.h b/src/core/job.h --- a/src/core/job.h +++ b/src/core/job.h @@ -27,6 +27,7 @@ #include "kgapicore_export.h" #include +#include class QNetworkAccessManager; class QNetworkReply; @@ -97,6 +98,10 @@ */ explicit Job(const AccountPtr &account, QObject* parent = nullptr); + struct StandardParams { + static const QString PrettyPrint; + }; + /** * @brief Destructor */ @@ -179,15 +184,33 @@ */ AccountPtr account() const; + /** + * @brief Sets whether response will have indentations and line breaks. + * + * When this is false, it can reduce the response payload size, + * which might lead to better performance in some environments. + * Default is false. + * + * @param prettyPrint + */ + void setPrettyPrint(bool prettyPrint); + + /** + * @brief Returns prettyPrint query parameter. + * + * @return prettyPrint query parameter + */ + bool prettyPrint() const; + /** * @brief Restarts this job * * When a job finishes, it's possible to run it again, without having * to create a new job. * * The job will throw away all results retrieved in previous run and retrieve * everything again. - * + * * @see Job::aboutToStart */ void restart(); diff --git a/src/core/job.cpp b/src/core/job.cpp --- a/src/core/job.cpp +++ b/src/core/job.cpp @@ -31,6 +31,7 @@ #include #include #include +#include using namespace KGAPI2; @@ -101,6 +102,7 @@ error(KGAPI2::NoError), accessManager(nullptr), maxTimeout(0), + prettyPrint(false), q(parent) { } @@ -325,6 +327,17 @@ if (account) { authorizedRequest.setRawHeader("Authorization", "Bearer " + account->accessToken().toLatin1()); } + + QUrl url = authorizedRequest.url(); + QUrlQuery standardParamQuery(url); + + if (!standardParamQuery.hasQueryItem(Job::StandardParams::PrettyPrint)) { + standardParamQuery.addQueryItem(Job::StandardParams::PrettyPrint, prettyPrint ? QStringLiteral("true") : QStringLiteral("false")); + } + + url.setQuery(standardParamQuery); + authorizedRequest.setUrl(url); + qCDebug(KGAPIDebug) << q << "Dispatching request to" << r.request.url(); FileLogger::self()->logRequest(authorizedRequest, r.rawData); @@ -337,6 +350,8 @@ /************************* PUBLIC **********************/ +const QString Job::StandardParams::PrettyPrint = QStringLiteral("prettyPrint"); + Job::Job(QObject* parent): QObject(parent), d(new Private(this)) @@ -424,6 +439,20 @@ d->account = account; } +bool Job::prettyPrint() const +{ + return d->prettyPrint; +} + +void Job::setPrettyPrint(bool prettyPrint) +{ + if (d->isRunning) { + qCWarning(KGAPIDebug) << "Called setPrettyPrint() on running job. Ignoring."; + return; + } + + d->prettyPrint = prettyPrint; +} void Job::restart() { if (d->isRunning) { diff --git a/src/core/job_p.h b/src/core/job_p.h --- a/src/core/job_p.h +++ b/src/core/job_p.h @@ -81,6 +81,7 @@ QQueue requestQueue; QTimer *dispatchTimer; int maxTimeout; + bool prettyPrint; Request currentRequest;