mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-14 20:53:18 +00:00
13 lines
175 B
Go
13 lines
175 B
Go
|
package httpupgrade
|
||
|
|
||
|
func (c *Config) GetNormalizedPath() string {
|
||
|
path := c.Path
|
||
|
if path == "" {
|
||
|
return "/"
|
||
|
}
|
||
|
if path[0] != '/' {
|
||
|
return "/" + path
|
||
|
}
|
||
|
return path
|
||
|
}
|