Explorar o código

XHTTP client: Revert "Add back minimal path padding for compatibility"

Reverts https://github.com/XTLS/Xray-core/commit/efdc70fbf782433689dcb114e37426395100614d
RPRX hai 10 meses
pai
achega
c5de08bea6
Modificáronse 1 ficheiros con 6 adicións e 7 borrados
  1. 6 7
      transport/internet/splithttp/config.go

+ 6 - 7
transport/internet/splithttp/config.go

@@ -34,13 +34,12 @@ func (c *Config) GetNormalizedQuery() string {
 		query = pathAndQuery[1]
 	}
 
-	if query != "" {
-		query += "&"
-	}
-
-	// query += "x_version=" + core.Version()
-
-	query += "x_padding=" + strings.Repeat("X", int(c.GetNormalizedXPaddingBytes().From))
+	/*
+		if query != "" {
+			query += "&"
+		}
+		query += "x_version=" + core.Version()
+	*/
 
 	return query
 }