diff options
Diffstat (limited to 'cmd/iiifdownloader')
-rw-r--r-- | cmd/iiifdownloader/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/iiifdownloader/main.go b/cmd/iiifdownloader/main.go index 50858ef..a1fba4f 100644 --- a/cmd/iiifdownloader/main.go +++ b/cmd/iiifdownloader/main.go @@ -299,7 +299,7 @@ func dlNoPgNums(bookdir, pgurlStart, pgurlEnd, pgurlAltStart, pgurlAltEnd string // but enough for us for now. func sanitiseUrl(u string) string { var s string - s = strings.ReplaceAll(u, "//", "/") + s = strings.Replace(u, "//", "/", -1) s = strings.Replace(s, "https:/", "https://", 1) s = strings.Replace(s, "http:/", "http://", 1) return s |