mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
format with black
This commit is contained in:
parent
885a5a14f4
commit
b3bcd6821c
|
|
@ -1560,21 +1560,22 @@ class HttpCli(object):
|
||||||
self.send_headers(length=zi.file_size, mime=guess_mime(inner_path))
|
self.send_headers(length=zi.file_size, mime=guess_mime(inner_path))
|
||||||
|
|
||||||
sendfile_py(
|
sendfile_py(
|
||||||
self.log, 0, zi.file_size,
|
self.log,
|
||||||
fi,
|
0,
|
||||||
self.s,
|
zi.file_size,
|
||||||
self.args.s_wr_sz,
|
fi,
|
||||||
self.args.s_wr_slp,
|
self.s,
|
||||||
not self.args.no_poll,
|
self.args.s_wr_sz,
|
||||||
{},
|
self.args.s_wr_slp,
|
||||||
"",
|
not self.args.no_poll,
|
||||||
)
|
{},
|
||||||
|
"",
|
||||||
|
)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise Pebkac(404, "no such file in archive")
|
raise Pebkac(404, "no such file in archive")
|
||||||
except (zipfile.BadZipfile, RuntimeError):
|
except (zipfile.BadZipfile, RuntimeError):
|
||||||
raise Pebkac(404, "requested file is not a valid zip file")
|
raise Pebkac(404, "requested file is not a valid zip file")
|
||||||
|
|
||||||
|
|
||||||
def handle_propfind(self) -> bool:
|
def handle_propfind(self) -> bool:
|
||||||
if self.do_log:
|
if self.do_log:
|
||||||
self.log("PFIND %s @%s" % (self.req, self.uname))
|
self.log("PFIND %s @%s" % (self.req, self.uname))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue