You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The orpc server's public-base-path detection in
`src/node/orpc/server.ts` repeated the pattern
`parsePathnameFromRequestValue(value) → getAppProxyBasePathFromPathname(...)`
across four callsites (forwarded headers, originalUrl/url loop, referer
header, and the direct app-proxy handler-prefix calculator). Extract a
single `getAppProxyBasePathFromRequestValue` helper that performs the
two-step normalize-then-classify operation, then call it from every
site. Behavior-preserving: each callsite still produces null when the
value is absent or yields an invalid pathname, and otherwise returns the
same parsed app-proxy base path. All 52 tests in
`src/node/orpc/server.test.ts` continue to pass.
0 commit comments