mirror of https://gitlab.com/bashrc2/epicyon
Fix cookie
parent
14e3b077d9
commit
0d4112910b
|
@ -10542,6 +10542,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# The file has not changed
|
# The file has not changed
|
||||||
self._304()
|
self._304()
|
||||||
return True
|
return True
|
||||||
|
t = os.path.getmtime(avatarFilename)
|
||||||
|
lastModifiedTime = datetime.datetime.fromtimestamp(t)
|
||||||
|
lastModifiedTimeStr = modifiedTime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
|
||||||
mediaImageType = getImageMimeType(avatarFile)
|
mediaImageType = getImageMimeType(avatarFile)
|
||||||
with open(avatarFilename, 'rb') as avFile:
|
with open(avatarFilename, 'rb') as avFile:
|
||||||
mediaBinary = avFile.read()
|
mediaBinary = avFile.read()
|
||||||
|
|
Loading…
Reference in New Issue