From 58e83a811bce9a4f2bad0c3460939c54848becdf Mon Sep 17 00:00:00 2001
From: Matthew Holt <mholt@users.noreply.github.com>
Date: Sat, 16 Jan 2021 09:56:06 -0700
Subject: map: Add missing json struct tag

---
 modules/caddyhttp/map/map.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'modules/caddyhttp/map')

diff --git a/modules/caddyhttp/map/map.go b/modules/caddyhttp/map/map.go
index bfb2115..e193f20 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.
-- 
cgit v1.2.3