web: fix key request route

By default, aiohttp route identifier matches [^{}/]+, which doesn't
work for project named with a slash. This change fixes the route so
that it matches anything until the '.pub' extension.

Change-Id: Ia7d7c257fafd3959e8f13b4d26b7999a156fb5ee
This commit is contained in:
Tristan Cacqueray 2017-12-14 06:42:59 +00:00
parent 138d037400
commit 3e48bf53cd
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ class ZuulWeb(object):
('GET', '/{tenant}/status.json', self._handleStatusRequest),
('GET', '/{tenant}/jobs.json', self._handleJobsRequest),
('GET', '/{tenant}/console-stream', self._handleWebsocket),
('GET', '/{tenant}/{project}.pub', self._handleKeyRequest),
('GET', '/{tenant}/{project:.*}.pub', self._handleKeyRequest),
('GET', '/{tenant}/status.html', self._handleStaticRequest),
('GET', '/{tenant}/jobs.html', self._handleStaticRequest),
('GET', '/{tenant}/stream.html', self._handleStaticRequest),