mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
accept last-modified from owncloud webdav extension
This commit is contained in:
parent
7b7979fd61
commit
d8142e866a
|
@ -1464,6 +1464,16 @@ class HttpCli(object):
|
||||||
if self.args.nw:
|
if self.args.nw:
|
||||||
return post_sz, sha_hex, sha_b64, remains, path, ""
|
return post_sz, sha_hex, sha_b64, remains, path, ""
|
||||||
|
|
||||||
|
at = mt = time.time() - lifetime
|
||||||
|
cli_mt = self.headers.get("x-oc-mtime")
|
||||||
|
if cli_mt:
|
||||||
|
try:
|
||||||
|
mt = int(cli_mt)
|
||||||
|
times = (int(time.time()), mt)
|
||||||
|
bos.utime(path, times, False)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if nameless and "magic" in vfs.flags:
|
if nameless and "magic" in vfs.flags:
|
||||||
try:
|
try:
|
||||||
ext = self.conn.hsrv.magician.ext(path)
|
ext = self.conn.hsrv.magician.ext(path)
|
||||||
|
@ -1486,7 +1496,6 @@ class HttpCli(object):
|
||||||
fn = fn2
|
fn = fn2
|
||||||
path = path2
|
path = path2
|
||||||
|
|
||||||
at = time.time() - lifetime
|
|
||||||
if xau and not runhook(
|
if xau and not runhook(
|
||||||
self.log,
|
self.log,
|
||||||
xau,
|
xau,
|
||||||
|
@ -1494,7 +1503,7 @@ class HttpCli(object):
|
||||||
self.vpath,
|
self.vpath,
|
||||||
self.host,
|
self.host,
|
||||||
self.uname,
|
self.uname,
|
||||||
at,
|
mt,
|
||||||
post_sz,
|
post_sz,
|
||||||
self.ip,
|
self.ip,
|
||||||
at,
|
at,
|
||||||
|
|
Loading…
Reference in a new issue