Add FileInfo to resources created with resources.Match etc.

Without it, image resize fails.

See #6190
This commit is contained in:
Bjørn Erik Pedersen
2019-08-13 18:45:08 +02:00
parent cd575023af
commit 1089cfe4e1
2 changed files with 5 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ func (c *Client) match(pattern string, firstOnly bool) (resource.Resources, erro
meta := info.Meta()
r, err := c.rs.New(resources.ResourceSourceDescriptor{
LazyPublish: true,
FileInfo: info,
OpenReadSeekCloser: func() (hugio.ReadSeekCloser, error) {
return meta.Open()
},