Skip to content

Commit 667ed51

Browse files
rustyconoverclaude
andcommitted
landing: strip the trailing slash from the client base URL
The client joins `base + "/" + method`, and the page built its base from location.pathname, which ends in "/". The resulting "//__describe__" is tolerated by Python's and Go's routers and 404s from axum, so the Rust worker's page could not boot at all. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent dd06428 commit 667ed51

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎vgi/http/landing.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,10 @@ <h1 id="worker-name">—</h1>
954954
if (!res.ok) throw new Error('HTTP '+res.status);
955955
const status = await res.json();
956956

957-
client = new VgiClient(httpConnect(serviceUrl));
957+
// Trailing slash stripped: the client joins `base + "/" + method`, and a
958+
// base that already ends in "/" yields "//method" — tolerated by Python's
959+
// and Go's routers, a 404 from axum.
960+
client = new VgiClient(httpConnect(serviceUrl.replace(/\/$/, '')));
958961
const infos = await client.catalogsInfo();
959962
const catalogs = await Promise.all(infos.map(buildCatalog));
960963

0 commit comments

Comments
 (0)