mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Add binary stream to package publishing request
This commit is contained in:
@ -36,7 +36,8 @@ class RegistryClient(RESTClient):
|
|||||||
"/v3/package/%s/%s" % (owner, PackageType.from_archive(archive_path)),
|
"/v3/package/%s/%s" % (owner, PackageType.from_archive(archive_path)),
|
||||||
params={"private": 1 if private else 0, "released_at": released_at},
|
params={"private": 1 if private else 0, "released_at": released_at},
|
||||||
headers={
|
headers={
|
||||||
"Authorization": "Bearer %s" % account.fetch_authentication_token()
|
"Authorization": "Bearer %s" % account.fetch_authentication_token(),
|
||||||
|
"Content-Type": "application/octet-stream",
|
||||||
},
|
},
|
||||||
data=fp,
|
data=fp,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user