We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 293ed73 commit c93949eCopy full SHA for c93949e
src/param/strUtil.go
@@ -176,9 +176,10 @@ func normalizePathMapsNoCase(inputs []string) map[string]string {
176
urlPath = util.CleanUrlPath(urlPath)
177
fsPath = filepath.Clean(fsPath)
178
179
- for url := range maps {
180
- if strings.EqualFold(url, urlPath) {
181
- delete(maps, url)
+ for existingUrl := range maps {
+ if strings.EqualFold(existingUrl, urlPath) {
+ urlPath = existingUrl
182
+ break
183
}
184
185
0 commit comments