From 58e6a1737352de3e1e8aa9db8c63969118264936 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 28 Sep 2017 15:14:53 -0400 Subject: [PATCH] Fix namespace links that end in slashes --- endpoints/web.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/endpoints/web.py b/endpoints/web.py index 5767d7e72..b967b7528 100644 --- a/endpoints/web.py +++ b/endpoints/web.py @@ -80,12 +80,14 @@ def not_found_error_display(e = None): return resp @web.route('/organization/', methods=['GET']) +@web.route('/organization//', methods=['GET']) @no_cache def org_view(path): return index('') @web.route('/user/', methods=['GET']) +@web.route('/user//', methods=['GET']) @no_cache def user_view(path): return index('') @@ -757,6 +759,7 @@ def attach_custom_build_trigger(namespace_name, repo_name): @web.route('/') +@web.route('//') @no_cache @process_oauth @parse_repository_name(include_tag=True) @@ -809,6 +812,7 @@ def redirect_to_repository(namespace_name, repo_name, tag_name): @web.route('/') +@web.route('//') @no_cache @process_oauth @anon_protect