diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-11-25 12:49:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-11-25 18:59:06 +0100 |
commit | d6f7a9e28dfd5abff08b6aaf6fb3493c46bd1e39 (patch) | |
tree | f5715b86cff28eb5c7ab7320c30a492806441cae /resources/image.go | |
parent | 031f948f87ac97ca49d0a487a392a8a0c6afb699 (diff) | |
download | hugo-d6f7a9e28dfd5abff08b6aaf6fb3493c46bd1e39.tar.gz hugo-d6f7a9e28dfd5abff08b6aaf6fb3493c46bd1e39.zip |
resources/images: Make the image cache more robust
Also allow timeout to be set as a duration string, e.g. `30s`.
Fixes #6501
Diffstat (limited to 'resources/image.go')
-rw-r--r-- | resources/image.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/image.go b/resources/image.go index 1991e65f5..cdea8a2a7 100644 --- a/resources/image.go +++ b/resources/image.go @@ -88,7 +88,7 @@ func (i *imageResource) getExif() (*exif.Exif, error) { key := i.getImageMetaCacheTargetPath() - read := func(info filecache.ItemInfo, r io.Reader) error { + read := func(info filecache.ItemInfo, r io.ReadSeeker) error { meta := &imageMeta{} data, err := ioutil.ReadAll(r) if err != nil { |