mirror of https://gitlab.com/bashrc2/epicyon
Avatar without etag check
parent
38ad16d0af
commit
4ea34b4f8f
|
@ -12717,10 +12717,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
acctDir(baseDir, avatarNickname, domain) + '/' + avatarFile
|
acctDir(baseDir, avatarNickname, domain) + '/' + avatarFile
|
||||||
if not os.path.isfile(avatarFilename):
|
if not os.path.isfile(avatarFilename):
|
||||||
return False
|
return False
|
||||||
if self._etag_exists(avatarFilename):
|
# if self._etag_exists(avatarFilename):
|
||||||
# The file has not changed
|
# # The file has not changed
|
||||||
self._304()
|
# self._304()
|
||||||
return True
|
# return True
|
||||||
|
|
||||||
t = os.path.getmtime(avatarFilename)
|
t = os.path.getmtime(avatarFilename)
|
||||||
lastModifiedTime = datetime.datetime.fromtimestamp(t)
|
lastModifiedTime = datetime.datetime.fromtimestamp(t)
|
||||||
|
|
Loading…
Reference in New Issue