Browse Source

connect through to an HTTPS endpoint in the hopes that it will eliminate possible errors from proxies trying to parse the http request

Alan Shreve 12 years ago
parent
commit
7b25fe80e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ngrok/conn/conn.go

+ 1 - 1
src/ngrok/conn/conn.go

@@ -119,7 +119,7 @@ func DialHttpProxy(proxyUrl, addr, typ string, tlsCfg *tls.Config) (conn *logged
 	}
 
 	// send an HTTP proxy CONNECT message
-	req, err := http.NewRequest("CONNECT", "http://"+addr, nil)
+	req, err := http.NewRequest("CONNECT", "https://"+addr, nil)
 	if err != nil {
 		return
 	}