summaryrefslogtreecommitdiff
path: root/plugins/http/config/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http/config/http.go')
-rw-r--r--plugins/http/config/http.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/http/config/http.go b/plugins/http/config/http.go
index 53a22f3c..59735e2e 100644
--- a/plugins/http/config/http.go
+++ b/plugins/http/config/http.go
@@ -108,6 +108,9 @@ func (c *HTTP) InitDefaults() error {
if c.Static.Pattern == "" {
c.Static.Pattern = "/static/"
}
+ if c.Static.Dir == "" {
+ c.Static.Dir = "."
+ }
}
err := c.HTTP2Config.InitDefaults()