GetHead middleware incorrectly handles URL path selection when RawPath is present
GetHead middleware incorrectly handles URL path selection when RawPath is present: a task in harness-adapters: Agentic coding environments (Harbor dataset). The GetHead middleware is not correctly selecting between URL.Path and URL.RawPath when determining the route path. When a request has both…
The task
The GetHead middleware is not correctly selecting between URL.Path and URL.RawPath when determining the route path. When a request has both Path and RawPath set, the middleware should prioritize RawPath over Path, but currently does the opposite.
Part of harness-hub/harness-adapters.