diff --git a/service/files/files.go b/service/files/files.go index 3887d79..7e64d00 100644 --- a/service/files/files.go +++ b/service/files/files.go @@ -164,7 +164,7 @@ func Download(hash string) (io.Reader, error) { tusItem := db.Get().Table("tus").Where(&model.Tus{Hash: hash}).Row() if uploadItem.Err() == nil { - fetch, err := client.R().SetDoNotParseResponse(true).Get(fmt.Sprintf("/worker/objects/%s", hash)) + fetch, err := client.R().SetDoNotParseResponse(true).Get(getWorkerProofUrl(hash)) if err != nil { logger.Get().Error(ErrFailedFetchObject.Error(), zap.Error(err)) return nil, ErrFailedFetchObject