forked from TrueCloudLab/distribution
Etags must be quoted according to http spec
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
ad0440c7ce
commit
345174a34b
5 changed files with 16 additions and 14 deletions
|
@ -47,7 +47,7 @@ func (bs *blobServer) ServeBlob(ctx context.Context, w http.ResponseWriter, r *h
|
|||
}
|
||||
defer br.Close()
|
||||
|
||||
w.Header().Set("ETag", desc.Digest.String()) // If-None-Match handled by ServeContent
|
||||
w.Header().Set("ETag", fmt.Sprintf(`"%s"`, desc.Digest)) // If-None-Match handled by ServeContent
|
||||
w.Header().Set("Cache-Control", fmt.Sprintf("max-age=%.f", blobCacheControlMaxAge.Seconds()))
|
||||
|
||||
if w.Header().Get("Docker-Content-Digest") == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue