From ae58cc74bdc5a960e36299f7a02a8342cb6acb67 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 28 May 2020 16:08:37 +0300 Subject: [PATCH] Rename checksum header to X-PIO-Content-SHA256 --- platformio/clients/registry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platformio/clients/registry.py b/platformio/clients/registry.py index bbb0725c..123b3239 100644 --- a/platformio/clients/registry.py +++ b/platformio/clients/registry.py @@ -38,7 +38,9 @@ class RegistryClient(RESTClient): headers={ "Authorization": "Bearer %s" % account.fetch_authentication_token(), "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, )