Fetch should conform to metadata format
This commit is contained in:
parent
6ab7f9f00a
commit
3f4c4ad211
|
@ -57,9 +57,9 @@ func Fetch(logger io.Writer, cdnUrl string, dir string, fs billy.Filesystem, sto
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
lineInfo := strings.Split(line, " ")
|
lineInfo := strings.SplitN(line, " ", 2)
|
||||||
hash := lineInfo[0]
|
hash := strings.TrimSpace(lineInfo[0])
|
||||||
path := lineInfo[1]
|
path := strings.TrimSpace(lineInfo[1])
|
||||||
|
|
||||||
url := fmt.Sprintf("%s/%s", cdnUrl, hash)
|
url := fmt.Sprintf("%s/%s", cdnUrl, hash)
|
||||||
if storage != nil {
|
if storage != nil {
|
||||||
|
|
Loading…
Reference in New Issue