diff --git a/helper/metadata.go b/helper/metadata.go index c197443f3..47a3f6d15 100644 --- a/helper/metadata.go +++ b/helper/metadata.go @@ -56,7 +56,7 @@ func WriteMetadata(p, etag string, subdir string) config.MetaFile { Id: id, } - if config.ProxyMode { + if etag != "" { data.Path = p data.Checksum = HashString(etag) } else {