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 { if err != nil {
return err return err
} }
cd := Duration(dd) *d = Duration(dd)
d = &cd
return nil return nil
} }

Loading…
Cancel
Save