1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-20 13:09:22 +00:00

fix blob serving for ko builds

This commit is contained in:
Jason Hall 2018-12-05 12:51:51 -05:00
parent 423a1d5635
commit 9a27ab6101

View file

@ -49,7 +49,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
case strings.HasPrefix(path, "ko/") && strings.Contains(path, "/manifests/"):
serveKoManifest(w, r)
case strings.HasPrefix(path, "random/blobs/"),
strings.HasPrefix(path, "ko/blobs/"):
strings.HasPrefix(path, "ko/") && strings.Contains(path, "/blobs/"):
serveBlob(w, r)
default:
http.Error(w, "not found", http.StatusNotFound)