Fix the curl usage to get a single tag.

This commit is contained in:
yackob03 2013-11-11 20:00:01 -05:00
parent b8dc051705
commit 5a2728c6a8

View file

@ -39,7 +39,9 @@ def get_tag(namespace, repository, tag):
if permission.can() or model.repository_is_public(namespace, repository):
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)