rclone: [WebDAV] Can not replace http `Referer`?
Rclone version: v1.57.0
my conf file
[AList]
type = webdav
url = http://192.168.2.2:5244/dav
vendor = other
user = *
pass = *
headers = "Referer","https://www.mycustom.com/drive","XXX","YYY"
log file
2022/03/17 02:41:23 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/17 02:41:23 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/17 02:41:23 DEBUG : HTTP REQUEST (req 0xc00014f400)
2022/03/17 02:41:23 DEBUG : GET /** HTTP/1.1
Host: **
User-Agent: rclone/v1.57.0
Depth: 0
Range: bytes=341114880-682229759
Referer: http://192.168.2.2:5244/dav/%E8%A5%BF%E9%81%8A%E8%A8%98/MUX_1.mkv
Xxx: YYY
It doesn’t seem to use the Referer in the conf file. And the Header’s key is forced to be capitalized.
How can i custom the Referer?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- webdav: don't override Referer if user sets it - fixes #6040 — committed to rclone/rclone by ncw 2 years ago
- webdav: don't override Referer if user sets it - fixes #6040 — committed to rclone/rclone by ncw 2 years ago
It looks like the Go team have merged a fix for this for go 1.21
This will land in rclone 1.64 I expect