webdav4 icon indicating copy to clipboard operation
webdav4 copied to clipboard

Option to add trailing slashes

Open fleimgruber opened this issue 1 year ago • 1 comments

As a user, I want to add trailing slashes to requests. I found https://github.com/skshetry/webdav4/blob/4c2046e2250f001bdad76541c0e877e4b40c332e/src/webdav4/client.py#L358 but no way to set this kwarg.

Related #136 talks about follow_redirects but that did not work for me.

fleimgruber avatar Jan 15 '24 11:01 fleimgruber

Does a link without trailing slash redirect to a url with a slash? iirc if it does, it should work (I see we do follow_redirects=True on propfind).

We strip trailing slashes in many places, so that's what causes the problem in many places. Unfortunately, I don't have time anytime soon to work on this. PRs are welcome. (We also need to look into WebDAV standard for compliance with what the link format should be (canonical or not, etc).

skshetry avatar Jan 18 '24 07:01 skshetry