瀏覽代碼

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

Reverts https://github.com/XTLS/Xray-core/commit/efdc70fbf782433689dcb114e37426395100614d
RPRX 1 年之前
父節點
當前提交
c5de08bea6
共有 1 個文件被更改,包括 6 次插入7 次删除
  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
 }