0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

reorder header and data writes

This commit is contained in:
Ramkumar Chinchani 2019-11-26 09:37:23 -08:00
parent 181fe595c5
commit f07c535225

View file

@ -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