mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 07:01:46 +01:00
webdav: nextcloud: fix must use /dav/files/USER endpoint not /webdav error
Before this change the regexp validating the endpoint URL was a bit too strict allowing only /dav/files/USER. This patch relaxes it allowing /dav/files/USER/dir/subdir etc.
This commit is contained in:
parent
00512e1303
commit
705572d400
@ -569,7 +569,7 @@ func (f *Fs) fetchAndSetBearerToken() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
var validateNextCloudChunkedURL = regexp.MustCompile(`^.*/dav/files/[^/]+/?$`)
|
||||
var validateNextCloudChunkedURL = regexp.MustCompile(`^.*/dav/files/`)
|
||||
|
||||
// setQuirks adjusts the Fs for the vendor passed in
|
||||
func (f *Fs) setQuirks(ctx context.Context, vendor string) error {
|
||||
|
Loading…
Reference in New Issue
Block a user