From f07c535225c34b7980aabf1f222e5e866007d131 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Tue, 26 Nov 2019 09:37:23 -0800 Subject: [PATCH] reorder header and data writes --- pkg/api/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/routes.go b/pkg/api/routes.go index aeb580dc..678cdc77 100644 --- a/pkg/api/routes.go +++ b/pkg/api/routes.go @@ -218,8 +218,8 @@ func (rh *RouteHandler) GetManifest(w http.ResponseWriter, r *http.Request) { return } - WriteData(w, http.StatusOK, mediaType, content) w.Header().Set(DistContentDigestKey, digest) + WriteData(w, http.StatusOK, mediaType, content) } // UpdateManifest godoc