diff options
author | Valery Piashchynski <[email protected]> | 2021-04-26 21:49:52 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-04-26 21:49:52 +0300 |
commit | 4cb2247f909d02c922edb6f8e3d3741cc5a2c077 (patch) | |
tree | 639d5056cd79b618e88f7d1395e26f45e5afed0b /plugins/http/config/http.go | |
parent | d3912947d8c5500649b86e886623c434e24cacc8 (diff) |
- Update defaults
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/http/config/http.go')
-rw-r--r-- | plugins/http/config/http.go | 3 |
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() |