In Rust toolchain version 1.96.0 cargo publish adds HTTP header "Content-Type: application/octet-stream". Cloudsmith rejects package publishing due to unsupported content type, response is:
HTTP/2 415
{"detail":"Unsupported media type \"application/octet-stream\" in request."}.
It is possible to publish using older Rust toolchain, i.e. 1.94.1, because in cargo publish request it does not send "Content-Type" header at all.
It is easy to reproduce this problem, just try publishing by using 1.96.0 toolchain.
Yes, i am aware that this kind of is not the right place to report this issue, but since this seems to be the official cloudsmith-io repo and related to cloudsmith-api, i report it here in hopes that it will be forwarded to correct team.
In Rust toolchain version 1.96.0
cargo publishadds HTTP header "Content-Type: application/octet-stream". Cloudsmith rejects package publishing due to unsupported content type, response is:It is possible to publish using older Rust toolchain, i.e. 1.94.1, because in
cargo publishrequest it does not send "Content-Type" header at all.It is easy to reproduce this problem, just try publishing by using 1.96.0 toolchain.
Yes, i am aware that this kind of is not the right place to report this issue, but since this seems to be the official cloudsmith-io repo and related to cloudsmith-api, i report it here in hopes that it will be forwarded to correct team.