Trim slashes while parsing publish prefix

Fixes: #607
This commit is contained in:
Andrey Smirnov committed 2017-08-09 01:26:47 +03:00
1 parent e70ef0a518
commit 84ef963d7d
3 files changed
+26

No files matched your search

+1
View File
@@ -78,6 +78,7 @@ func ParsePrefix(param string) (storage, prefix string) {
} else {
prefix = param
}
prefix = strings.TrimPrefix(strings.TrimSuffix(prefix, "/"), "/")
return
}