[Pkg-owncloud-commits] [owncloud-client] 167/333: Also allow http and https protocols.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 9d1208baa459b941628ebe15809ef7666903f489
Author: Klaas Freitag <freitag at owncloud.com>
Date: Tue Mar 18 17:10:03 2014 +0100
Also allow http and https protocols.
---
csync/src/csync_owncloud.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/csync/src/csync_owncloud.c b/csync/src/csync_owncloud.c
index e97f9a5..f5a4ab1 100644
--- a/csync/src/csync_owncloud.c
+++ b/csync/src/csync_owncloud.c
@@ -480,13 +480,13 @@ static int dav_connect(const char *base_url) {
DEBUG_WEBDAV("* port %u", port );
DEBUG_WEBDAV("* path %s", path );
- if( strcmp( scheme, "owncloud" ) == 0 ) {
+ if( strcmp( scheme, "owncloud" ) == 0 || strcmp( scheme, "http" ) == 0 ) {
strcpy( protocol, "http");
- } else if( strcmp( scheme, "ownclouds" ) == 0 ) {
+ } else if( strcmp( scheme, "ownclouds" ) == 0 || strcmp( scheme, "https") == 0 ) {
strcpy( protocol, "https");
useSSL = 1;
} else {
- DEBUG_WEBDAV("Invalid scheme %s, go outa here!", scheme );
+ DEBUG_WEBDAV("Invalid scheme %s, go out here!", scheme );
rc = -1;
goto out;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list