Fix mimetype handling in registry tests
This commit is contained in:
parent
7a794e29c0
commit
3b4002877a
2 changed files with 3 additions and 3 deletions
|
@ -181,7 +181,7 @@ class V2Protocol(RegistryProtocol):
|
|||
|
||||
headers = {
|
||||
'Authorization': 'Bearer ' + token,
|
||||
'Accept': ','.join(options.accept_mimetypes or []),
|
||||
'Accept': ','.join(options.accept_mimetypes) if options.accept_mimetypes else '*/*',
|
||||
}
|
||||
|
||||
# Push all blobs.
|
||||
|
@ -285,7 +285,7 @@ class V2Protocol(RegistryProtocol):
|
|||
|
||||
headers = {
|
||||
'Authorization': 'Bearer ' + token,
|
||||
'Accept': ','.join(options.accept_mimetypes or []),
|
||||
'Accept': ','.join(options.accept_mimetypes) if options.accept_mimetypes else '*/*',
|
||||
}
|
||||
|
||||
# Build fake manifests.
|
||||
|
|
Reference in a new issue