WebDAV: Set depth 1 in PROPFIND request, for better compatability with some servers. Thanks, wzhd.
This commit is contained in:
parent
a24a18d76e
commit
850a645233
2 changed files with 6 additions and 1 deletions
|
@ -260,7 +260,10 @@ existsDAV :: DavLocation -> DAVT IO (Either String Bool)
|
||||||
existsDAV l = inLocation l check `catchNonAsync` (\e -> return (Left $ show e))
|
existsDAV l = inLocation l check `catchNonAsync` (\e -> return (Left $ show e))
|
||||||
where
|
where
|
||||||
check = do
|
check = do
|
||||||
setDepth Nothing
|
-- Some DAV services only support depth of 1, and
|
||||||
|
-- more depth is certainly not needed to check if a
|
||||||
|
-- location exists.
|
||||||
|
setDepth (Just Depth1)
|
||||||
catchJust
|
catchJust
|
||||||
(matchStatusCodeException (== notFound404))
|
(matchStatusCodeException (== notFound404))
|
||||||
(getPropsM >> ispresent True)
|
(getPropsM >> ispresent True)
|
||||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -22,6 +22,8 @@ git-annex (6.20160127) UNRELEASED; urgency=medium
|
||||||
* init: Fix bugs in submodule .git symlink fixup, that occurred when
|
* init: Fix bugs in submodule .git symlink fixup, that occurred when
|
||||||
initializing in a subdirectory of a submodule and a submodule of a
|
initializing in a subdirectory of a submodule and a submodule of a
|
||||||
submodule.
|
submodule.
|
||||||
|
* WebDAV: Set depth 1 in PROPFIND request, for better compatability with
|
||||||
|
some servers. Thanks, wzhd.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Thu, 28 Jan 2016 13:53:09 -0400
|
-- Joey Hess <id@joeyh.name> Thu, 28 Jan 2016 13:53:09 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue