mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-16 00:58:41 +00:00
XHTTP client: Add back minimal path padding for compatibility
It should be reverted in the future.
This commit is contained in:
parent
f35fb08aeb
commit
efdc70fbf7
1 changed files with 7 additions and 6 deletions
|
@ -34,12 +34,13 @@ func (c *Config) GetNormalizedQuery() string {
|
||||||
query = pathAndQuery[1]
|
query = pathAndQuery[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
if query != "" {
|
||||||
if query != "" {
|
query += "&"
|
||||||
query += "&"
|
}
|
||||||
}
|
|
||||||
query += "x_version=" + core.Version()
|
// query += "x_version=" + core.Version()
|
||||||
*/
|
|
||||||
|
query += "x_padding=" + strings.Repeat("X", int(c.GetNormalizedXPaddingBytes().From))
|
||||||
|
|
||||||
return query
|
return query
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue