mirror of
https://github.com/9001/copyparty.git
synced 2025-08-16 16:42:13 -06:00
restore .bin-suffix for nameless PUT/POSTs
disappeared in v1.0.11
This commit is contained in:
parent
c930d8f773
commit
799cf27c5d
|
@ -778,6 +778,10 @@ class HttpCli(object):
|
|||
self.log("fallthrough? thats a bug", 1)
|
||||
|
||||
suffix = "-{:.6f}-{}".format(time.time(), self.dip)
|
||||
if not fn:
|
||||
suffix += ".bin"
|
||||
fn = "put" + suffix
|
||||
|
||||
params = {"suffix": suffix, "fdir": fdir}
|
||||
if self.args.nw:
|
||||
params = {}
|
||||
|
@ -785,9 +789,6 @@ class HttpCli(object):
|
|||
|
||||
params.update(open_ka)
|
||||
|
||||
if not fn:
|
||||
fn = "put" + suffix
|
||||
|
||||
with ren_open(fn, *open_a, **params) as zfw:
|
||||
f, fn = zfw["orz"]
|
||||
path = os.path.join(fdir, fn)
|
||||
|
|
Loading…
Reference in a new issue