From 6d46ae5fdb72d07dc077cac6a0c1c36d988d9ac4 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 --- docs/storage/blobserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/storage/blobserver.go b/docs/storage/blobserver.go index 065453e6..a7b42681 100644 --- a/docs/storage/blobserver.go +++ b/docs/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.