From 2f7e5c7e37711ebd257843ebebf19e2af67172f0 Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Tue, 5 Mar 2024 09:02:40 -0500 Subject: [PATCH] Fix another spot missing the branch alias --- edb/server/protocol/protocol.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edb/server/protocol/protocol.pyx b/edb/server/protocol/protocol.pyx index dfed94b786c..29780364597 100644 --- a/edb/server/protocol/protocol.pyx +++ b/edb/server/protocol/protocol.pyx @@ -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(): @@ -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)