Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
Fix bug unmarshaling custom duration values
Matthew Holt committed
May 29, 2019 at 23:09 UTC
2265db9028a070d4013b8db9708ca4ae9294763b
1 file changed
+1
-2
caddy.go
+1
-2
@@ -157,8 +157,7 @@ func (d *Duration) UnmarshalJSON(b []byte) error {
157
if err != nil {
158
return err
159
}
160
- cd := Duration(dd)
161
- d = &cd
160
+ *d = Duration(dd)
161
return nil
162
}
163