1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-13 13:50:16 +00:00

Use escaped path for url parsing

This commit is contained in:
Craig Jellick
2018-03-01 13:28:24 -07:00
parent f59a6072cf
commit 4bcfb14aba

View File

@@ -46,7 +46,7 @@ type URLParser func(schema *types.Schemas, url *url.URL) (ParsedURL, error)
func DefaultURLParser(schemas *types.Schemas, url *url.URL) (ParsedURL, error) {
result := ParsedURL{}
path := url.Path
path := url.EscapedPath()
path = multiSlashRegexp.ReplaceAllString(path, "/")
schemaVersion, version, prefix, parts, subContext := parseVersionAndSubContext(schemas, path)