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
@ -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…
x
Reference in New Issue
Block a user