Browse Source

Fix bug unmarshaling custom duration values

master
Matthew Holt 6 years ago
parent
commit
2265db9028
  1. 3
      caddy.go

3
caddy.go

@ -157,8 +157,7 @@ func (d *Duration) UnmarshalJSON(b []byte) error {
if err != nil {
return err
}
cd := Duration(dd)
d = &cd
*d = Duration(dd)
return nil
}

Loading…
Cancel
Save