forked from indymedia/epicyon
404 if image not found
parent
5af97894f4
commit
6c6b436cb7
|
@ -526,6 +526,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self._set_headers('image/png',len(mediaBinary),cookie)
|
||||
self.wfile.write(mediaBinary)
|
||||
self.wfile.flush()
|
||||
self._404()
|
||||
return
|
||||
# login screen background image
|
||||
if self.path=='/login-background.png':
|
||||
|
@ -537,6 +538,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self._set_headers('image/png',len(mediaBinary),cookie)
|
||||
self.wfile.write(mediaBinary)
|
||||
self.wfile.flush()
|
||||
return
|
||||
self._404()
|
||||
return
|
||||
# follow screen background image
|
||||
if self.path=='/follow-background.png':
|
||||
|
@ -548,6 +551,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self._set_headers('image/png',len(mediaBinary),cookie)
|
||||
self.wfile.write(mediaBinary)
|
||||
self.wfile.flush()
|
||||
self._404()
|
||||
return
|
||||
# emoji images
|
||||
if '/emoji/' in self.path:
|
||||
|
|
Loading…
Reference in New Issue