Skip to content

(*client.httpBlobUpload).ReadFrom omits Content-Type header #3965

@corhere

Description

@corhere

When httpBlobUpload is used as an io.Writer, each Write() call issues a PATCH request to the remote registry with Content-Type, Content-Range and Content-Length headers. However, if it is used as an io.ReaderFrom, each ReadFrom() call issues a PATCH request with none of those headers. While the Content-Range and Content-Length header values would be challenging to implement without introducing buffering, there's no good reason to also omit the Content-Type header.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions