diff --git a/platformio/clients/registry.py b/platformio/clients/registry.py index f68c4fb4..ba52c83b 100644 --- a/platformio/clients/registry.py +++ b/platformio/clients/registry.py @@ -36,7 +36,8 @@ class RegistryClient(RESTClient): "/v3/package/%s/%s" % (owner, PackageType.from_archive(archive_path)), params={"private": 1 if private else 0, "released_at": released_at}, headers={ - "Authorization": "Bearer %s" % account.fetch_authentication_token() + "Authorization": "Bearer %s" % account.fetch_authentication_token(), + "Content-Type": "application/octet-stream", }, data=fp, )