From 70955878c9211e29b626d958daa2306e99532bd8 Mon Sep 17 00:00:00 2001 From: "arraykeys@gmail.com" Date: Tue, 6 Mar 2018 18:11:13 +0800 Subject: [PATCH] Signed-off-by: arraykeys@gmail.com --- services/sps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {