Signed-off-by: arraykeys@gmail.com <arraykeys@gmail.com>

This commit is contained in:
arraykeys@gmail.com
2018-03-06 18:11:13 +08:00
parent 86f017d92f
commit 70955878c9

View File

@ -203,7 +203,7 @@ func (s *SPS) OutToTCP(inConn *net.Conn) (err error) {
//ask parent for connect to target address //ask parent for connect to target address
if *s.cfg.ParentServiceType == "http" { if *s.cfg.ParentServiceType == "http" {
//http parent //http parent
fmt.Fprintf(outConn, "CONNECT %s\r\n", address) fmt.Fprintf(outConn, "CONNECT %s HTTP/1.1\r\n", address)
reply := make([]byte, 100) reply := make([]byte, 100)
n, err = outConn.Read(reply) n, err = outConn.Read(reply)
if err != nil { if err != nil {