Fix the curl usage to get a single tag.
This commit is contained in:
parent
b8dc051705
commit
5a2728c6a8
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ def get_tag(namespace, repository, tag):
|
||||||
|
|
||||||
if permission.can() or model.repository_is_public(namespace, repository):
|
if permission.can() or model.repository_is_public(namespace, repository):
|
||||||
tag_image = model.get_tag_image(namespace, repository, tag)
|
tag_image = model.get_tag_image(namespace, repository, tag)
|
||||||
response = make_response(tag_image.docker_image_id, 200)
|
resp = make_response('"%s"' % tag_image.docker_image_id)
|
||||||
|
resp.headers['Content-Type'] = 'application/json'
|
||||||
|
return resp
|
||||||
|
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
||||||
|
|
Reference in a new issue