From 0edb91185b7dbb415e1b9163fd7dbf26c8b3a815 Mon Sep 17 00:00:00 2001 From: Richard Scothern Date: Mon, 29 Jun 2015 16:44:06 -0700 Subject: [PATCH] Prevent the ErrUnsupportedMethod error from being returned up the stack. It eventually causes the go http library to do a double WriteHeader() which is an error Signed-off-by: Richard Scothern --- registry/storage/blobserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/registry/storage/blobserver.go b/registry/storage/blobserver.go index 065453e60..a7b42681d 100644 --- a/registry/storage/blobserver.go +++ b/registry/storage/blobserver.go @@ -65,6 +65,7 @@ func (bs *blobServer) ServeBlob(ctx context.Context, w http.ResponseWriter, r *h } http.ServeContent(w, r, desc.Digest.String(), time.Time{}, br) + return nil } // Some unexpected error.