mirror of https://gitlab.com/bashrc2/epicyon
Set etag with quotes
parent
80162ec2cb
commit
f1ab45a668
|
@ -713,7 +713,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._set_headers_base(fileFormat, length, None, callingDomain,
|
self._set_headers_base(fileFormat, length, None, callingDomain,
|
||||||
permissive)
|
permissive)
|
||||||
if etag:
|
if etag:
|
||||||
self.send_header('ETag', etag)
|
self.send_header('ETag', '"' + etag + '"')
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
def _set_headers_etag(self, mediaFilename: str, fileFormat: str,
|
def _set_headers_etag(self, mediaFilename: str, fileFormat: str,
|
||||||
|
@ -738,7 +738,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
except BaseException:
|
except BaseException:
|
||||||
pass
|
pass
|
||||||
if etag:
|
if etag:
|
||||||
self.send_header('ETag', etag)
|
self.send_header('ETag', '"' + etag + '"')
|
||||||
if lastModified:
|
if lastModified:
|
||||||
self.send_header('last-modified', lastModified)
|
self.send_header('last-modified', lastModified)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
Loading…
Reference in New Issue