remotes: FetchByDigest: propagate media type from config to desc
A media type string passed via `WithMediaType()` was not propagated to a descriptor returned by `FetchByDigest()`. Follow-up to PR 8744 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
		| @@ -256,6 +256,9 @@ func (r dockerFetcher) FetchByDigest(ctx context.Context, dgst digest.Digest, op | ||||
| 		Digest:    dgst, | ||||
| 		Size:      sz, | ||||
| 	} | ||||
| 	if config.Mediatype != "" { | ||||
| 		desc.MediaType = config.Mediatype | ||||
| 	} | ||||
| 	return seeker, desc, nil | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Akihiro Suda
					Akihiro Suda