We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d77da54 commit aa09d60Copy full SHA for aa09d60
gateway/tunnel.go
@@ -41,7 +41,10 @@ func (g *Gateway) tunnelHandler() http.Handler {
41
BufferPool: newBufferPool(),
42
ErrorHandler: g.errorHandler,
43
ModifyResponse: func(r *http.Response) error {
44
- // This is only used for metrics, no modification to the response will be done
+ // since visitor and client shares the same port, proxied target may have
45
+ // alt-svc set in their response, which will either break peer quic,
46
+ // or the visitor won't be able to visit
47
+ r.Header.Del("alt-svc")
48
profiler.GatewayRequests.WithLabelValues("success", "forward").Add(1)
49
return nil
50
},
0 commit comments