Skip to content

Support Content-Type header for cargo packages. #91

@janis-ab

Description

@janis-ab

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions