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 (
|
const (
|
||||||
ReleaseVersion string = "3.2.4"
|
ReleaseVersion string = "3.2.5"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -92,11 +92,11 @@ Loop:
|
||||||
}
|
}
|
||||||
|
|
||||||
func pathUrlEscape(path string) string {
|
func pathUrlEscape(path string) string {
|
||||||
placeholder := strings.Replace(path, "/", "<path_placeholder>", -1)
|
placeholder := strings.Replace(path, "/", "path_placeholder", -1)
|
||||||
|
|
||||||
escaped := url.QueryEscape(placeholder)
|
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) {
|
func paginateSorted(path, first, last, queryParams string, regexes *regexes, formats types.Types) (string, error) {
|
||||||
|
|
Loading…
Reference in New Issue