mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-08 10:27:23 +02:00
BLACK
This commit is contained in:
@@ -841,9 +841,7 @@ class HttpHandler(BaseHTTPRequestHandler):
|
||||
mtime = file_stat.st_mtime
|
||||
file_size = file_stat.st_size
|
||||
|
||||
etag_hash = hashlib.md5(
|
||||
f"{file_size}-{mtime}".encode()
|
||||
).hexdigest()
|
||||
etag_hash = hashlib.md5(f"{file_size}-{mtime}".encode()).hexdigest()
|
||||
etag = f'"{etag_hash}"'
|
||||
last_modified = formatdate(mtime, usegmt=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user