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
{{ message }}
Repository navigation
Let thv proxy know the transport of the server it fronts #7460
thv proxy builds its transparent proxy with an empty transport type, because it does not know what kind of server is behind it. The method gate and the event-stream check in pkg/transport/proxy/transparent therefore treat it as streamable HTTP:
DELETE is forwarded. A legacy HTTP+SSE workload under thv run refuses it with 405.
An event stream answering a POST is let through. A legacy HTTP+SSE workload under thv run refuses it with 502.
When thv proxy fronts a legacy SSE server, it doesn't get those checks.
Proposal
Add a --transport flag (sse or streamable-http) to thv proxy and pass it to NewTransparentProxy, so the same per-transport checks apply. Keep the empty value as the default for compatibility, and document that --transport sse turns on the legacy SSE checks.
Activity