Merge pull request #7050 from Aigeruth/fix/push_image_layer_registry_content_type

Add Content-Type header in PushImageLayerRegistry
This commit is contained in:
Vincent Batts 2014-07-21 15:07:01 -04:00
commit c9bcc63cc7

View File

@ -656,6 +656,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)