From 5a2728c6a854dd4038cb20700bee666f69b48324 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Mon, 11 Nov 2013 20:00:01 -0500 Subject: [PATCH] Fix the curl usage to get a single tag. --- endpoints/tags.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/endpoints/tags.py b/endpoints/tags.py index 41a103975..7267d7b7e 100644 --- a/endpoints/tags.py +++ b/endpoints/tags.py @@ -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)