diff options
author | 2016-04-09 07:46:24 -0700 | |
---|---|---|
committer | 2016-04-09 08:33:36 -0700 | |
commit | 669e2bf9fe0486cc997037e02d347e4810f42106 (patch) | |
tree | aba0d890bf77f57c3dadddea649953d6e9b9b5b1 | |
parent | fe8c2ba6ce39adc7006f686eb3e13be3d6f4b577 (diff) | |
download | subsurface-669e2bf9fe0486cc997037e02d347e4810f42106.tar.gz |
Cloud storage: make first connect a post
But don't wait for it to succeed.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | checkcloudconnection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/checkcloudconnection.cpp b/checkcloudconnection.cpp index be2a2fa18..f1555adc3 100644 --- a/checkcloudconnection.cpp +++ b/checkcloudconnection.cpp @@ -6,6 +6,7 @@ #include "pref.h" #include "helpers.h" +#include "subsurfacewebservices.h" #include "checkcloudconnection.h" @@ -29,6 +30,9 @@ bool CheckCloudConnection::checkServer() request.setRawHeader("Accept", "text/plain"); request.setRawHeader("User-Agent", getUserAgent().toUtf8()); request.setUrl(QString(prefs.cloud_base_url) + TEAPOT); + // now set up an authentication test + CloudStorageAuthenticate *csa = new CloudStorageAuthenticate(0); + csa->backend(prefs.cloud_storage_email, prefs.cloud_storage_password); QNetworkAccessManager *mgr = new QNetworkAccessManager(); reply = mgr->get(request); connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); |