Remove the charset from the content type for manifests

This commit is contained in:
Joseph Schorr 2019-01-12 16:06:11 -05:00
parent a67d57b91c
commit 5b4d39daa4
2 changed files with 7 additions and 5 deletions

View file

@ -70,7 +70,7 @@ def fetch_manifest_by_tagname(namespace_name, repo_name, manifest_ref):
manifest_bytes.as_unicode(),
status=200,
headers={
'Content-Type': '%s; charset=utf-8' % manifest_media_type,
'Content-Type': manifest_media_type,
'Docker-Content-Digest': manifest_digest,
},
)
@ -99,7 +99,7 @@ def fetch_manifest_by_digest(namespace_name, repo_name, manifest_ref):
metric_queue.repository_pull.Inc(labelvalues=[namespace_name, repo_name, 'v2', True])
return Response(manifest_bytes.as_unicode(), status=200, headers={
'Content-Type': '%s; charset=utf-8' % manifest_media_type,
'Content-Type': manifest_media_type,
'Docker-Content-Digest': manifest_digest,
})