mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
Don't append .bin to unnamed files
.bin gets appended to all unnamed files uploaded via a PUT request. This happens even if a random file name is specified. .bin files are quite rare so I don't think it's a good extension to slap on to files even if they happen to be binary in nature. Instead we should just let the file remain extensionless.
This commit is contained in:
parent
b9ba783c1c
commit
c3e5cdcc7f
|
@ -2100,7 +2100,6 @@ class HttpCli(object):
|
|||
suffix = "-{:.6f}-{}".format(time.time(), self.dip())
|
||||
nameless = not fn
|
||||
if nameless:
|
||||
suffix += ".bin"
|
||||
fn = "put" + suffix
|
||||
|
||||
params = {"suffix": suffix, "fdir": fdir}
|
||||
|
|
Loading…
Reference in a new issue