From efdc70fbf782433689dcb114e37426395100614d Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Thu, 30 Jan 2025 10:45:12 +0000 Subject: [PATCH] XHTTP client: Add back minimal path padding for compatibility It should be reverted in the future. --- transport/internet/splithttp/config.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/transport/internet/splithttp/config.go b/transport/internet/splithttp/config.go index f160db31..f1ccc493 100644 --- a/transport/internet/splithttp/config.go +++ b/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 }