mirror of
https://github.com/imjasonh/kontain.me
synced 2026-07-08 09:04:54 +00:00
nothing
This commit is contained in:
parent
340ca89f5a
commit
a33f348561
1 changed files with 1 additions and 2 deletions
|
|
@ -89,6 +89,7 @@ func (s *server) serveMirrorManifest(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
if err := serve.BlobExists(d.Digest); err != nil {
|
||||
s.info.Printf("INFO (serve.BlobExists(%q)): %v", d, err)
|
||||
// Blob doesn't exist yet. Try to get the image manifest+layers
|
||||
// and cache them.
|
||||
img, err := remote.Image(ref)
|
||||
|
|
@ -97,10 +98,8 @@ func (s *server) serveMirrorManifest(w http.ResponseWriter, r *http.Request) {
|
|||
serve.Error(w, err)
|
||||
return
|
||||
}
|
||||
|
||||
serve.Manifest(w, r, img)
|
||||
} else {
|
||||
serve.Blob(w, r, d.Digest.String())
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue