Avatar without etag check

merge-requests/30/head
Bob Mottram 2021-12-15 11:42:36 +00:00
parent 38ad16d0af
commit 4ea34b4f8f
1 changed files with 4 additions and 4 deletions

View File

@ -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)