refactoring of code
This commit is contained in:
@@ -87,7 +87,7 @@ func MergeSlices(slice1, slice2 []string) []string {
|
||||
return append(slice1, slice2...)
|
||||
}
|
||||
|
||||
// ParseURLPath returns a URL path
|
||||
// ParseURLPath removes duplicated [//]
|
||||
func ParseURLPath(urlPath string) string {
|
||||
// Replace any double slashes with a single slash
|
||||
urlPath = strings.ReplaceAll(urlPath, "//", "/")
|
||||
|
||||
Reference in New Issue
Block a user