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._set_headers('image/png',len(mediaBinary),cookie)
|
||||||
self.wfile.write(mediaBinary)
|
self.wfile.write(mediaBinary)
|
||||||
self.wfile.flush()
|
self.wfile.flush()
|
||||||
|
self._404()
|
||||||
return
|
return
|
||||||
# login screen background image
|
# login screen background image
|
||||||
if self.path=='/login-background.png':
|
if self.path=='/login-background.png':
|
||||||
|
@ -538,6 +539,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.wfile.write(mediaBinary)
|
self.wfile.write(mediaBinary)
|
||||||
self.wfile.flush()
|
self.wfile.flush()
|
||||||
return
|
return
|
||||||
|
self._404()
|
||||||
|
return
|
||||||
# follow screen background image
|
# follow screen background image
|
||||||
if self.path=='/follow-background.png':
|
if self.path=='/follow-background.png':
|
||||||
mediaFilename= \
|
mediaFilename= \
|
||||||
|
@ -548,6 +551,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._set_headers('image/png',len(mediaBinary),cookie)
|
self._set_headers('image/png',len(mediaBinary),cookie)
|
||||||
self.wfile.write(mediaBinary)
|
self.wfile.write(mediaBinary)
|
||||||
self.wfile.flush()
|
self.wfile.flush()
|
||||||
|
self._404()
|
||||||
return
|
return
|
||||||
# emoji images
|
# emoji images
|
||||||
if '/emoji/' in self.path:
|
if '/emoji/' in self.path:
|
||||||
|
|
Loading…
Reference in New Issue