Merge pull request #408 from coreos-inc/python-registry-v2-notfun
Change to return a proper manifest URL
This commit is contained in:
commit
4fa37a46d1
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@ import jwt.utils
|
|||
import yaml
|
||||
import json
|
||||
|
||||
from flask import make_response, request
|
||||
from flask import make_response, request, url_for
|
||||
from collections import namedtuple, OrderedDict
|
||||
from jwkest.jws import SIGNER_ALGS
|
||||
from jwkest.jwk import RSAKey
|
||||
|
@ -292,7 +292,8 @@ def _write_manifest(namespace, repo_name, manifest):
|
|||
|
||||
response = make_response('OK', 202)
|
||||
response.headers['Docker-Content-Digest'] = manifest_digest
|
||||
response.headers['Location'] = 'https://fun.com'
|
||||
response.headers['Location'] = url_for('v2.fetch_manifest_by_digest', namespace=namespace,
|
||||
repo_name=repo_name, manifest_ref=manifest_digest)
|
||||
return response
|
||||
|
||||
|
||||
|
|
Reference in a new issue