Skip to content

Commit

Permalink
Use escaped path for url parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Jellick committed Mar 1, 2018
1 parent f59a607 commit 4bcfb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4bcfb14

Please sign in to comment.