mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 07:07:44 +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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
f.srv.SetHeader("Referer", u.String())
|
||||||
|
|
||||||
if root != "" && !rootIsDir {
|
if root != "" && !rootIsDir {
|
||||||
// Check to see if the root actually an existing file
|
// Check to see if the root actually an existing file
|
||||||
|
|
Loading…
Reference in New Issue
Block a user