STUPID!!!

This commit is contained in:
Victorious Children Studios 2023-12-19 21:57:44 +02:00
parent 1927feb37a
commit 3ff1411c18

View file

@ -220,11 +220,11 @@ class handler(BaseHTTPRequestHandler):
self.wfile.write(f) self.wfile.write(f)
else: else:
self.start_page(404) self.start_page(404)
self.wfile.write(b"File: "+filename.encode("utf-8")+b" doen't exist") self.wfile.write(b"File: "+filename.encode("utf-8")+b" doesn't exist")
elif self.path.startswith("/download_z/"): elif self.path.startswith("/download_z/"):
filename = self.path[9:] filename = self.path[11:]
fullfilename = PROJECT+filename fullfilename = PROJECT+filename
@ -239,7 +239,7 @@ class handler(BaseHTTPRequestHandler):
self.wfile.write(z) self.wfile.write(z)
else: else:
self.start_page(404) self.start_page(404)
self.wfile.write(b"File: "+filename.encode("utf-8")+b" doen't exist") self.wfile.write(b"File: "+filename.encode("utf-8")+b" doesn't exist")
try: try: