mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
fix(routes): set Content-Length on GetManifest (#1019)
notation sign image index exits with "missing Content-Length" error Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
parent
f75bce3085
commit
4753a0f587
1 changed files with 2 additions and 0 deletions
|
@ -402,6 +402,8 @@ func (rh *RouteHandler) GetManifest(response http.ResponseWriter, request *http.
|
|||
}
|
||||
|
||||
response.Header().Set(constants.DistContentDigestKey, digest.String())
|
||||
response.Header().Set("Content-Length", fmt.Sprintf("%d", len(content)))
|
||||
response.Header().Set("Content-Type", mediaType)
|
||||
WriteData(response, http.StatusOK, mediaType, content)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue