Skip to content

Commit

Permalink
ostage: don't forget to convert https etags
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Nov 11, 2021
1 parent 1b24008 commit 264d78b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dvc/objects/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 264d78b

Please sign in to comment.