diff --git a/endpoints/v1/index.py b/endpoints/v1/index.py index 13a2c4ed9..517bc9f1c 100644 --- a/endpoints/v1/index.py +++ b/endpoints/v1/index.py @@ -168,7 +168,7 @@ def update_user(username): abort(403) -@v1_bp.route('/repositories/', methods=['PUT']) +@v1_bp.route('/repositories//', methods=['PUT']) @process_auth @parse_repository_name @generate_headers(scope=GrantType.WRITE_REPOSITORY, add_grant_for_status=201) diff --git a/test/registry_tests.py b/test/registry_tests.py index d66afa3bd..a5770bc8a 100644 --- a/test/registry_tests.py +++ b/test/registry_tests.py @@ -321,7 +321,7 @@ class V1RegistryPushMixin(V1RegistryMixin): # PUT /v1/repositories/{namespace}/{repository}/ expected_code = _get_expected_code(expect_failure, 1, 201) - self.conduct('PUT', '/v1/repositories/%s' % repo_name, + self.conduct('PUT', '/v1/repositories/%s/' % repo_name, data=json.dumps(images), auth=auth, expected_code=expected_code)