diff options
-rw-r--r-- | caldav/objects.py | 5 | ||||
-rw-r--r-- | tests/conf.py | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/caldav/objects.py b/caldav/objects.py index e30ae43..c975252 100644 --- a/caldav/objects.py +++ b/caldav/objects.py @@ -219,7 +219,10 @@ class DAVObject(object): response = self._query_properties(props, depth) properties = self._handle_prop_response(response, props) path = unquote(self.url.path) - exchange_path = path + '/' + if path.endswith('/'): + exchange_path = path[:-1] + else: + exchange_path = path + '/' if path in properties: rc = properties[path] diff --git a/tests/conf.py b/tests/conf.py index 62bc9c9..c5eecf2 100644 --- a/tests/conf.py +++ b/tests/conf.py @@ -52,5 +52,11 @@ if not only_private: "nopropfind": True, "norecurring": True}) + caldav_servers.append({ + "url": "http://xandikos-caldav-servers.cloudapps.bitbit.net/", + "username": "user1", + "password": "password1" + }) + proxy = "127.0.0.1:8080" proxy_noport = "127.0.0.1" |