caddyfile: Support global config block; allow non-empty blocks w/ 0 keys

This commit is contained in:
Matthew Holt
2019-08-22 13:38:37 -06:00
parent a0fd2b6c0a
commit af25f0254e
8 changed files with 118 additions and 28 deletions

View File

@ -331,7 +331,7 @@ func cmdAdaptConfig() (int, error) {
fmt.Errorf("reading input file: %v", err)
}
opts := make(map[string]string)
opts := make(map[string]interface{})
if *adaptCmdPrettyFlag {
opts["pretty"] = "true"
}