mirror of
https://github.com/rclone/rclone.git
synced 2025-02-05 13:11:29 +01:00
webdav: add "Depth: 0" to GET requests to fix bitrix
See: https://forum.rclone.org/t/bitrix24-de-remote-support/21112/
This commit is contained in:
parent
0ea51f74a1
commit
15f31d3ca4
@ -1134,6 +1134,9 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read
|
|||||||
Method: "GET",
|
Method: "GET",
|
||||||
Path: o.filePath(),
|
Path: o.filePath(),
|
||||||
Options: options,
|
Options: options,
|
||||||
|
ExtraHeaders: map[string]string{
|
||||||
|
"Depth": "0",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
err = o.fs.pacer.Call(func() (bool, error) {
|
err = o.fs.pacer.Call(func() (bool, error) {
|
||||||
resp, err = o.fs.srv.Call(ctx, &opts)
|
resp, err = o.fs.srv.Call(ctx, &opts)
|
||||||
|
Loading…
Reference in New Issue
Block a user