aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/image.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-11-25 12:49:04 +0100
committerBjørn Erik Pedersen <[email protected]>2019-11-25 18:59:06 +0100
commitd6f7a9e28dfd5abff08b6aaf6fb3493c46bd1e39 (patch)
treef5715b86cff28eb5c7ab7320c30a492806441cae /resources/image.go
parent031f948f87ac97ca49d0a487a392a8a0c6afb699 (diff)
downloadhugo-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.go2
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 {