Xray-core/transport/internet/httpupgrade/config.go

13 lines
175 B
Go
Raw Normal View History

2024-03-03 07:12:38 +02:00
package httpupgrade
func (c *Config) GetNormalizedPath() string {
path := c.Path
if path == "" {
return "/"
}
if path[0] != '/' {
return "/" + path
}
return path
}