mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 06:27:11 +08:00
webdav: add Referer header to fix problems with WAFs - fixes #3868
This commit is contained in:
parent
ede36b001b
commit
e4d2d228bd
|
@ -358,6 +358,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
f.srv.SetHeader("Referer", u.String())
|
||||
|
||||
if root != "" && !rootIsDir {
|
||||
// Check to see if the root actually an existing file
|
||||
|
|
Loading…
Reference in New Issue
Block a user