Rename checksum header to X-PIO-Content-SHA256

This commit is contained in:
Ivan Kravets
2020-05-28 16:08:37 +03:00
parent 37e795d539
commit ae58cc74bd

View File

@ -38,7 +38,9 @@ class RegistryClient(RESTClient):
headers={ headers={
"Authorization": "Bearer %s" % account.fetch_authentication_token(), "Authorization": "Bearer %s" % account.fetch_authentication_token(),
"Content-Type": "application/octet-stream", "Content-Type": "application/octet-stream",
"X-PIO-SHA256": fs.calculate_file_hashsum("sha256", archive_path), "X-PIO-Content-SHA256": fs.calculate_file_hashsum(
"sha256", archive_path
),
}, },
data=fp, data=fp,
) )