Add binary stream to package publishing request

This commit is contained in:
Ivan Kravets
2020-05-27 17:27:05 +03:00
parent d38f5aca5c
commit c1965b607b

View File

@ -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,
)