Răsfoiți Sursa

XHTTP client: Add back minimal path padding for compatibility

It should be reverted in the future.
RPRX 8 luni în urmă
părinte
comite
efdc70fbf7
1 a modificat fișierele cu 7 adăugiri și 6 ștergeri
  1. 7 6
      transport/internet/splithttp/config.go

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

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