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 /hugolib/config.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 'hugolib/config.go')
-rw-r--r-- | hugolib/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index 1bed9c0d9..e29d6ac9f 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -620,7 +620,7 @@ func loadDefaultSettingsFor(v *viper.Viper) error { v.SetDefault("disableAliases", false) v.SetDefault("debug", false) v.SetDefault("disableFastRender", false) - v.SetDefault("timeout", 30000) // 30 seconds + v.SetDefault("timeout", "30s") v.SetDefault("enableInlineShortcodes", false) return nil |