From 58e83a811bce9a4f2bad0c3460939c54848becdf Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 16 Jan 2021 09:56:06 -0700 Subject: [PATCH] map: Add missing json struct tag --- modules/caddyhttp/map/map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caddyhttp/map/map.go b/modules/caddyhttp/map/map.go index bfb21154..e193f203 100644 --- a/modules/caddyhttp/map/map.go +++ b/modules/caddyhttp/map/map.go @@ -48,7 +48,7 @@ type Handler struct { // If no mappings match or if the mapped output is null/nil, the associated // default output will be applied (optional). - Defaults []string + Defaults []string `json:"defaults,omitempty"` } // CaddyModule returns the Caddy module information.