summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-15 14:24:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-15 14:24:30 -0800
commit5c2ded584085f79d39e40ad89fd0c52980bab676 (patch)
tree1d01e2ea190a82ba1561c8e6f97a3d64bf70a701 /qt-ui/subsurfacewebservices.cpp
parentd3065d811ac6441fd0eaa64b17eade4335a5a366 (diff)
downloadsubsurface-5c2ded584085f79d39e40ad89fd0c52980bab676.tar.gz
Disable https on Windows for 4.0
We appear to be missing the correct dll. I'm out of time trying to track this down, so I just switched Subsurface to access divelogs.de via http on Windwos. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 150889135..096100ad8 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -623,7 +623,11 @@ void DivelogsDeWebServices::startUpload()
ui.password->setEnabled(false);
QNetworkRequest request;
+#ifdef WIN32
+ request.setUrl(QUrl("http://divelogs.de/DivelogsDirectImport.php"));
+#else
request.setUrl(QUrl("https://divelogs.de/DivelogsDirectImport.php"));
+#endif
request.setRawHeader("Accept", "text/xml, application/xml");
QHttpPart part;
@@ -654,7 +658,11 @@ void DivelogsDeWebServices::startDownload()
ui.password->setEnabled(false);
QNetworkRequest request;
+#ifdef WIN32
+ request.setUrl(QUrl("http://divelogs.de/xml_available_dives.php"));
+#else
request.setUrl(QUrl("https://divelogs.de/xml_available_dives.php"));
+#endif
request.setRawHeader("Accept", "text/xml, application/xml");
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
@@ -766,9 +774,9 @@ void DivelogsDeWebServices::downloadFinished()
quint64 entries;
#if defined(LIBZIP_VERSION_MAJOR)
- entries = zip_get_num_entries(zip, 0);
+ entries = zip_get_num_entries(zip, 0);
#else
- // old version of libzip
+ // old version of libzip
entries = zip_get_num_files(zip);
#endif