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
|
||||
if not os.path.isfile(avatarFilename):
|
||||
return False
|
||||
if self._etag_exists(avatarFilename):
|
||||
# The file has not changed
|
||||
self._304()
|
||||
return True
|
||||
# if self._etag_exists(avatarFilename):
|
||||
# # The file has not changed
|
||||
# self._304()
|
||||
# return True
|
||||
|
||||
t = os.path.getmtime(avatarFilename)
|
||||
lastModifiedTime = datetime.datetime.fromtimestamp(t)
|
||||
|
|
Loading…
Reference in New Issue