github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/httpupgrade/config.go (about) 1 package httpupgrade 2 3 func (c *Config) GetNormalizedPath() string { 4 path := c.Path 5 if path == "" { 6 return "/" 7 } 8 if path[0] != '/' { 9 return "/" + path 10 } 11 return path 12 }