404 if media isn't found

master
Bob Mottram 2019-07-16 17:10:52 +01:00
parent d7598125cf
commit 8ab84efbbf
1 changed files with 3 additions and 0 deletions

View File

@ -297,6 +297,9 @@ class PubServer(BaseHTTPRequestHandler):
self.wfile.write(mediaBinary)
self.server.GETbusy=False
return
self._404()
self.server.GETbusy=False
return
# show avatar or background image
if '/users/' in self.path:
if self.path.endswith('.png') or \