Remove the charset from the content type for manifests
This commit is contained in:
parent
a67d57b91c
commit
5b4d39daa4
2 changed files with 7 additions and 5 deletions
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
Reference in a new issue