Skip to content

Commit e7afe60

Browse files
committed
Fix proxy
1 parent 85d9470 commit e7afe60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

local/proxy/proxy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ func tlsToLocalWebServer(proxy *goproxy.ProxyHttpServer, tlsConfig *tls.Config,
7575
return &goproxy.ConnectAction{
7676
Action: goproxy.ConnectHijack,
7777
Hijack: func(req *http.Request, proxyClient net.Conn, ctx *goproxy.ProxyCtx) {
78+
ctx.Logf("Hijacking CONNECT")
79+
proxyClient.Write([]byte("HTTP/1.0 200 OK\r\n\r\n"))
80+
7881
proxyClientTls := tls.Server(proxyClient, tlsConfig)
7982
if err := proxyClientTls.Handshake(); err != nil {
8083
defer proxyClient.Close()

0 commit comments

Comments
 (0)