diff options
author | Francis Lavoie <[email protected]> | 2023-02-22 13:39:40 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-22 11:39:40 -0700 |
commit | 79de6df93d0404790c3bfecfefa9e1458ffcff75 (patch) | |
tree | b4056129957e9faaeecebe6e01f3a4101130d862 /context.go | |
parent | 8bc05e598da0068358a2876c45f92f2c77455341 (diff) | |
download | caddy-79de6df93d0404790c3bfecfefa9e1458ffcff75.tar.gz caddy-79de6df93d0404790c3bfecfefa9e1458ffcff75.zip |
cmd: Strict unmarshal for validate (#5383)
Diffstat (limited to 'context.go')
-rw-r--r-- | context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/context.go b/context.go index 330bfa6f5..c585aa55d 100644 --- a/context.go +++ b/context.go @@ -326,7 +326,7 @@ func (ctx Context) LoadModuleByID(id string, rawMsg json.RawMessage) (any, error // fill in its config only if there is a config to fill in if len(rawMsg) > 0 { - err := strictUnmarshalJSON(rawMsg, &val) + err := StrictUnmarshalJSON(rawMsg, &val) if err != nil { return nil, fmt.Errorf("decoding module config: %s: %v", modInfo, err) } |