ostage: don't forget to convert https etags

Fixes #6966
This commit is contained in:
Ruslan Kuprieiev
2021-11-12 00:54:44 +02:00
parent 1b2400842d
commit 264d78b637
+3 -1
View File
@@ -52,7 +52,9 @@ def _adapt_info(info, scheme):
import base64
info["etag"] = base64.b64decode(info["etag"]).hex()
elif scheme == "http" and ("ETag" in info or "Content-MD5" in info):
elif scheme.startswith("http") and (
"ETag" in info or "Content-MD5" in info
):
info["checksum"] = info.get("ETag") or info.get("Content-MD5")
return info