In starlette/middleware/wsgi.py , the build environ function constructs a WSGI environment dict from an ASGI…
In starlette/middleware/wsgi.py , the build environ function constructs a WSGI environment dict from an ASGI…: a task in harness-adapters: Agentic coding environments (Harbor dataset). The stripping logic must only remove the root path prefix when it falls on a URL path segment boundary…
The task
The stripping logic must only remove the `root_path` prefix when it falls on a URL path segment boundary. Currently, a `root_path` of `/app` incorrectly strips from a path like `/application`, yielding `/lication` instead of leaving it untouched.
Part of harness-hub/harness-adapters.