Skip to content

Commit

Permalink
Fix incorrect default value for dav_endpoint_version
Browse files Browse the repository at this point in the history
This field is compared to the integer 1 at line 365.
  • Loading branch information
qdii committed Nov 3, 2023
1 parent 1eec854 commit 353f3ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions owncloud/owncloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def __init__(self, url, **kwargs):
:param url: URL of the target ownCloud instance
:param verify_certs: True (default) to verify SSL certificates, False otherwise
:param dav_endpoint_version: None (default) to force using a specific endpoint version
:param dav_endpoint_version: 1 (default) to force using a specific endpoint version
instead of relying on capabilities
:param debug: set to True to print debugging messages to stdout, defaults to False
"""
Expand All @@ -340,7 +340,7 @@ def __init__(self, url, **kwargs):
self._session = None
self._debug = kwargs.get('debug', False)
self._verify_certs = kwargs.get('verify_certs', True)
self._dav_endpoint_version = kwargs.get('dav_endpoint_version', True)
self._dav_endpoint_version = kwargs.get('dav_endpoint_version', 1)

self._capabilities = None
self._version = None
Expand Down

0 comments on commit 353f3ca

Please sign in to comment.