mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
transport: add httpupgrade
This commit is contained in:
parent
a3f50d0f5d
commit
173b03448f
11 changed files with 524 additions and 21 deletions
12
transport/internet/httpupgrade/config.go
Normal file
12
transport/internet/httpupgrade/config.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package httpupgrade
|
||||
|
||||
func (c *Config) GetNormalizedPath() string {
|
||||
path := c.Path
|
||||
if path == "" {
|
||||
return "/"
|
||||
}
|
||||
if path[0] != '/' {
|
||||
return "/" + path
|
||||
}
|
||||
return path
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue