aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-21 09:52:32 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-21 09:53:58 -0700
commit45881c7e73e50df0e760b951a94e02f93a485b8d (patch)
treee8bc6521706a6d2db2605c80972aea134d5f3d33
parentca35c528e2c8992fd73ce68b886ae71cf2e48e1a (diff)
downloadsubsurface-45881c7e73e50df0e760b951a94e02f93a485b8d.tar.gz
Turn off https for Mac as well
While this works fine in the install directory I cannot seem to bundle things in a way that the Subsurface.app is able to https. Giving up and falling back to http for Mac as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--webservice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/webservice.c b/webservice.c
index 9c990284c..426888118 100644
--- a/webservice.c
+++ b/webservice.c
@@ -369,10 +369,10 @@ int divelogde_upload(char *fn, char **error)
SoupSession *session;
SoupBuffer *sbuf;
gboolean ret = FALSE;
-#ifdef __MINGW32__
+#if __MINGW32__ || __APPLE__
/* for odd reasons I can't seem to get https connections to work
- * with mingw32 when cross-building the Windows binaries... so fall
- * back to http for now */
+ * with mingw32 when cross-building the Windows binaries and
+ * neither with bundled Mac binaries so fall back to http for now */
char url[256] = "http://divelogs.de/DivelogsDirectImport.php";
#else
char url[256] = "https://divelogs.de/DivelogsDirectImport.php";