Skip to content

Commit

Permalink
Fix another spot missing the branch alias
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Mar 5, 2024
1 parent 40adab0 commit 2f7e5c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edb/server/protocol/protocol.pyx
Expand Up @@ -496,7 +496,7 @@ cdef class HttpProtocol:
path_parts_len = len(path_parts)
route = path_parts[0]

if self.tenant is None and route in ['db', 'auth']:
if self.tenant is None and route in ['db', 'auth', 'branch']:
self.tenant = self.server.get_default_tenant()
self.check_readiness()
if self.tenant.is_accepting_connections():
Expand All @@ -510,7 +510,7 @@ cdef class HttpProtocol:
b'The server is closing.',
)

if route == 'db' or route == 'branch':
if route in ['db', 'branch']:
if path_parts_len < 2:
return self._not_found(request, response)

Expand Down

0 comments on commit 2f7e5c7

Please sign in to comment.