Set etag with quotes

main
Bob Mottram 2021-08-11 19:40:59 +01:00
parent 80162ec2cb
commit f1ab45a668
1 changed files with 2 additions and 2 deletions

View File

@ -713,7 +713,7 @@ class PubServer(BaseHTTPRequestHandler):
self._set_headers_base(fileFormat, length, None, callingDomain,
permissive)
if etag:
self.send_header('ETag', etag)
self.send_header('ETag', '"' + etag + '"')
self.end_headers()
def _set_headers_etag(self, mediaFilename: str, fileFormat: str,
@ -738,7 +738,7 @@ class PubServer(BaseHTTPRequestHandler):
except BaseException:
pass
if etag:
self.send_header('ETag', etag)
self.send_header('ETag', '"' + etag + '"')
if lastModified:
self.send_header('last-modified', lastModified)
self.end_headers()