forked from indymedia/epicyon
Redundant condition
parent
79789014d4
commit
88861ad69d
11
daemon.py
11
daemon.py
|
@ -1311,12 +1311,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
mediaFilename= \
|
mediaFilename= \
|
||||||
self.server.baseDir+'/img/icons/'+mediaStr
|
self.server.baseDir+'/img/icons/'+mediaStr
|
||||||
if os.path.isfile(mediaFilename):
|
if os.path.isfile(mediaFilename):
|
||||||
if mediaFilename.endswith('.png'):
|
with open(mediaFilename, 'rb') as avFile:
|
||||||
with open(mediaFilename, 'rb') as avFile:
|
mediaBinary = avFile.read()
|
||||||
mediaBinary = avFile.read()
|
self._set_headers('image/png',len(mediaBinary),cookie)
|
||||||
self._set_headers('image/png',len(mediaBinary),cookie)
|
self._write(mediaBinary)
|
||||||
self._write(mediaBinary)
|
return
|
||||||
return
|
|
||||||
self._404()
|
self._404()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue