proxy: fix double-prefix when outer proxy mounts a tool at the same name
The 0.1.24 nesting blindly appended the bundled sub-app name to the incoming
X-Forwarded-Prefix, which double-counted it when the outer proxy mounts the app
under the SAME name and proxies to our /<app>/ path (topology B): outer sends
"/township" -> container emitted "/township/township", so every township
fetch() 404'd ("Not found" -> JSON parse error in the UI).
Per-app maps now only append our name when the incoming prefix doesn't already
end in it, so both topologies work: outer-wraps-everything ("/ai" -> "/ai/town
ship") and outer-mounts-same-name ("/township" -> "/township"). Direct (no outer
proxy) still yields "/township".
Co-Authored-By:
Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RdMufYvtTbtGDWsiZVoXce
Showing
Please
register
or
sign in
to comment