From 3ec3d96a67b9880b7c7f88536faa5935767b290c Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 19 Jul 2017 07:05:58 +0100 Subject: [PATCH] Fix for #141 Former-commit-id: 04c5589be9e4a5ba9decd3dec90caceb1c1e8c1e [formerly beadc6ec26a2e822f63012cfa200244638b6a81c] [formerly aac8ff74a5afc8f2f711c88033224360b98a3202 [formerly 07333491ec074815143d6bf5f962b9be308599df]] Former-commit-id: 1f183e69bbc221eaa72139df236380fc9128d44b [formerly 97256f1e2f232e6d31e4a176d3b1a85ba4d5532a] Former-commit-id: 2ccbbbcddb0c1cd646c110cb52df95ad8515bce8 --- caddy/filemanager/filemanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy/filemanager/filemanager.go b/caddy/filemanager/filemanager.go index c7b686e4..c138a5c3 100644 --- a/caddy/filemanager/filemanager.go +++ b/caddy/filemanager/filemanager.go @@ -77,7 +77,7 @@ func parse(c *caddy.Controller) ([]*config, error) { // Get the baseURL and baseScope args := c.RemainingArgs() - if len(args) == 1 { + if len(args) >= 1 { baseURL = args[0] }