0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-05-05 09:41:25 +03:00
2024-03-03 10:45:36 -05:00

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
}