ref: e3451371bdb68015f89c8c0f7d8ea0a19fff8df5
parent: 5c5231e09e20953dc262df7d3b351a35f1c4b058
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Mon Nov 25 15:13:29 EST 2019
hugolib: Fix recently broken timeout config
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -414,7 +414,7 @@
timeout := 30 * time.Second
if cfg.Language.IsSet("timeout") {
switch v := cfg.Language.Get("timeout").(type) {
- case int:
+ case int64:
timeout = time.Duration(v) * time.Millisecond
case string:
d, err := time.ParseDuration(v)