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.
The manifest-list spec says:
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-Typein the HTTP response header and themediaTypein the corresponding descriptor should be resolved in the spec rather than being implementation-defined. I suggest that the descriptor's mediaType should win.