diff --git a/endpoints/appr/registry.py b/endpoints/appr/registry.py index 970998e44..9f2a5d9fb 100644 --- a/endpoints/appr/registry.py +++ b/endpoints/appr/registry.py @@ -158,7 +158,8 @@ def pull(namespace, package_name, release, media_type): data = cnr_registry.pull(reponame, release, media_type, Package, blob_class=Blob) model.log_action('pull_repo', namespace, repo_name=package_name, metadata={'release': release, 'mediatype': media_type}) - return _pull(data) + json_format = request.args.get('format', None) == 'json' + return _pull(data, json_format) @appr_bp.route("/api/v1/packages//", methods=['POST'],