Probably shouldn't use a URL-encoded character in my placeholder, huh
This commit is contained in:
parent
e22c171b29
commit
0d43dbeeb1
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
ReleaseVersion string = "3.2.4"
|
||||
ReleaseVersion string = "3.2.5"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -92,11 +92,11 @@ Loop:
|
|||
}
|
||||
|
||||
func pathUrlEscape(path string) string {
|
||||
placeholder := strings.Replace(path, "/", "<path_placeholder>", -1)
|
||||
placeholder := strings.Replace(path, "/", "path_placeholder", -1)
|
||||
|
||||
escaped := url.QueryEscape(placeholder)
|
||||
|
||||
return strings.Replace(escaped, "<path_placeholder>", "/", -1)
|
||||
return strings.Replace(escaped, "path_placeholder", "/", -1)
|
||||
}
|
||||
|
||||
func paginateSorted(path, first, last, queryParams string, regexes *regexes, formats types.Types) (string, error) {
|
||||
|
|
Loading…
Reference in New Issue