瀏覽代碼

http proxy bug

刘河 6 年之前
父節點
當前提交
7edc65cfde
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/proxy/tcp.go

+ 1 - 1
server/proxy/tcp.go

@@ -105,7 +105,7 @@ func ProcessHttp(c *conn.Conn, s *TunnelModeServer) error {
 		return err
 	}
 	if r.Method == "CONNECT" {
-		c.Write([]byte("HTTP/1.1 200 Connection Established\r\n"))
+		c.Write([]byte("HTTP/1.1 200 Connection established\r\n\r\n"))
 		rb = nil
 	}
 	if err := s.auth(r, c, s.task.Client.Cnf.U, s.task.Client.Cnf.P); err != nil {