Skip to content

Manifest list should not be identified by HTTP headers #390

@aecolley

Description

@aecolley

The manifest-list spec says:

A client will distinguish a manifest list from an image manifest based on the Content-Type returned in the HTTP response.

This is incorrect. A client will always discover a manifest list by following a descriptor in the refs/ directory, and the descriptor will state the media type. The media type will unambiguously distinguish manifests from manifest lists. No part of the spec requires obtaining a manifest/manifest list over HTTP.

In the event that a manifest list is obtained over HTTP, any mismatch between the Content-Type in the HTTP response header and the mediaType in the corresponding descriptor should be resolved in the spec rather than being implementation-defined. I suggest that the descriptor's mediaType should win.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions