From c1965b607b67679f464ecc6dc39fb3b985ce71af Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 27 May 2020 17:27:05 +0300 Subject: [PATCH] Add binary stream to package publishing request --- platformio/clients/registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, )