Skip to content

Commit

Permalink
Only accept the image manifest format (#20)
Browse files Browse the repository at this point in the history
... we don't support image manifest lists yet and the public, official
docker registry recently began serving requests by clients that say
they accept it. We said we accept it but we don't actually know what
to do with it yet.
  • Loading branch information
ixmatus committed Dec 1, 2017
1 parent 592d1a2 commit c37f317
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Network/Wreq/Docker/Registry.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ fetchManifest = ask >>= \HockerMeta{..} ->
where
mkURL (ImageName n) (ImageTag t) r = C8.unpack (serializeURIRef' $ Hocker.Lib.joinURIPath [n, "manifests", t] r)
accept = Wreq.header "Accept" .~
[ "application/vnd.docker.distribution.manifest.v2+json"
, "application/vnd.docker.distribution.manifest.list.v2+json"
]
[ "application/vnd.docker.distribution.manifest.v2+json" ]

-- | Retrieve the configuratino JSON of an image by its hash digest
-- (found in the V2 manifest for an image given by a name and a tag).
Expand Down

0 comments on commit c37f317

Please sign in to comment.