use servefile for streaming

This commit is contained in:
sentriz
2019-08-01 13:57:16 +01:00
parent 0b929bd326
commit c75732868d
4 changed files with 9 additions and 8 deletions

View File

@@ -107,6 +107,7 @@ func processAssets(c *config, files []string) error {
if err != nil {
return errors.Wrap(err, "opening asset")
}
defer data.Close()
processAsset(
c,
&file{