MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / firstForwardedValue

Function firstForwardedValue

scripts/proxy-utils.mjs:41–43  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

39}
40
41function firstForwardedValue(value) {
42 return value?.split(",")[0].trim();
43}
44
45// changeOrigin rewrites Host, and httpxy's upgrade path adds no X-Forwarded-Host.
46// The editor proxy and code-server compare Origin against the client-facing

Callers 1

forwardClientOriginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected