diff --git a/services/sps.go b/services/sps.go index 5643235..fa62ff5 100644 --- a/services/sps.go +++ b/services/sps.go @@ -203,7 +203,7 @@ func (s *SPS) OutToTCP(inConn *net.Conn) (err error) { //ask parent for connect to target address if *s.cfg.ParentServiceType == "http" { //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) n, err = outConn.Read(reply) if err != nil {