summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver/command.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-10 08:12:42 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-10 08:12:42 -0600
commit999ab22b8cbe3721eff6ae57526024a17f7cee4e (patch)
tree45c6fe8e4565a30bab2697860364b724f8346975 /modules/caddyhttp/fileserver/command.go
parent9991fdc4958de9601cbf37ddfd814733190a00d0 (diff)
caddyhttp: Add nil check (fixes #3248 and fixes #3250)
Diffstat (limited to 'modules/caddyhttp/fileserver/command.go')
-rw-r--r--modules/caddyhttp/fileserver/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go
index bd740e8..53aa7aa 100644
--- a/modules/caddyhttp/fileserver/command.go
+++ b/modules/caddyhttp/fileserver/command.go
@@ -85,7 +85,7 @@ func cmdFileServer(fs caddycmd.Flags) (int, error) {
if domain != "" {
route.MatcherSetsRaw = []caddy.ModuleMap{
- caddy.ModuleMap{
+ {
"host": caddyconfig.JSON(caddyhttp.MatchHost{domain}, nil),
},
}