mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
webdav: a healthy dash of paranoia
there's probably at least one client sending `Overwrite: False` instead of the spec-correct `Overwrite: F`
This commit is contained in:
parent
e9f78ea70c
commit
cb413bae49
|
@ -1811,7 +1811,8 @@ class HttpCli(object):
|
||||||
dst = unquotep(dst)
|
dst = unquotep(dst)
|
||||||
|
|
||||||
# overwrite=True is default; rfc4918 9.8.4
|
# overwrite=True is default; rfc4918 9.8.4
|
||||||
overwrite = self.headers.get("overwrite", "").lower() != "f"
|
zs = self.headers.get("overwrite", "").lower()
|
||||||
|
overwrite = zs not in ["f", "false"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fun = self._cp if self.mode == "COPY" else self._mv
|
fun = self._cp if self.mode == "COPY" else self._mv
|
||||||
|
|
Loading…
Reference in a new issue