• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 21220826942

21 Jan 2026 06:18PM UTC coverage: 59.436% (+0.03%) from 59.404%
21220826942

push

github

web-flow
Fix SSE response processor rewrite logic (#3381)

Response processor can be configured to honor `X-Forwarded-*` headers,
but proxies can occasionally send `X-Forwarded-Proto` without
`X-Forwarded-Host`. In those cases, payloads like
`/sse?sessionId=deadbeef` are rewritten as
`http:///sse?sessionId=deadbeef`, causing issues on the client side.

This change adds the scheme part if and only if the host part is also
configured.

5 of 5 new or added lines in 1 file covered. (100.0%)

17 existing lines in 6 files now uncovered.

36244 of 60980 relevant lines covered (59.44%)

80.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.81
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc