Get icon binary from cache

merge-requests/6/head
Bob Mottram 2019-11-24 18:11:32 +00:00
parent 5a63454d1b
commit de303d28bd
1 changed files with 1 additions and 0 deletions

View File

@ -1316,6 +1316,7 @@ class PubServer(BaseHTTPRequestHandler):
mediaFilename= \
self.server.baseDir+'/img/icons/'+mediaStr
if self.server.iconsCache.get(mediaStr):
mediaBinary=self.server.iconsCache[mediaStr]
self._set_headers('image/png',len(mediaBinary),cookie)
self._write(mediaBinary)
self.server.iconsCache[mediaStr]=mediaBinary