mirror of https://gitlab.com/bashrc2/epicyon
Host should be callingdomain for avatars and media
parent
b4ab0f38f7
commit
e921710213
|
@ -6252,7 +6252,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
mediaBinary = avFile.read()
|
||||
self._set_headers_etag(mediaFilename, mediaFileType,
|
||||
mediaBinary, None,
|
||||
self.server.domainFull, True)
|
||||
callingDomain, True)
|
||||
self._write(mediaBinary)
|
||||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||
'show emoji done',
|
||||
|
@ -10542,10 +10542,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
mediaImageType = getImageMimeType(avatarFile)
|
||||
with open(avatarFilename, 'rb') as avFile:
|
||||
mediaBinary = avFile.read()
|
||||
self._set_headers_etag(avatarFilename,
|
||||
mediaImageType,
|
||||
self._set_headers_etag(avatarFilename, mediaImageType,
|
||||
mediaBinary, None,
|
||||
self.server.domainFull, True)
|
||||
callingDomain, True)
|
||||
self._write(mediaBinary)
|
||||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||
'icon shown done',
|
||||
|
|
Loading…
Reference in New Issue