mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
8 lines
202 B
Python
Executable file
8 lines
202 B
Python
Executable file
# sends a custom response instead of the usual 404
|
|
|
|
|
|
def main(cli, vn, rem):
|
|
msg = f"sorry {cli.ip} but {cli.vpath} doesn't exist"
|
|
|
|
return str(cli.reply(msg.encode("utf-8"), 404, "text/plain"))
|