Skip to content

Commit

Permalink
Path components cannot be escaped with QueryEscape.
Browse files Browse the repository at this point in the history
  • Loading branch information
pxi committed Sep 22, 2014
1 parent 357454f commit 2c3b8c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ var now = func() time.Time {
func normuri(uri string) string {
parts := strings.Split(uri, "/")
for i := range parts {
parts[i] = url.QueryEscape(parts[i])
u := &url.URL{Path: parts[i]}
parts[i] = u.String()
}
return strings.Join(parts, "/")
}

0 comments on commit 2c3b8c5

Please sign in to comment.