Explorar o código

Add Content-Type header in PushImageLayerRegistry

Docker-DCO-1.1-Signed-off-by: Gabor Nagy <mail@aigeruth.hu> (github: Aigeruth)
Gabor Nagy %!s(int64=11) %!d(string=hai) anos
pai
achega
f861bfd9ff
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      registry/registry.go

+ 1 - 0
registry/registry.go

@@ -522,6 +522,7 @@ func (r *Registry) PushImageLayerRegistry(imgID string, layer io.Reader, registr
 	if err != nil {
 		return "", "", err
 	}
+	req.Header.Add("Content-Type", "application/octet-stream")
 	req.ContentLength = -1
 	req.TransferEncoding = []string{"chunked"}
 	setTokenAuth(req, token)