mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-22 20:54:11 +08:00
Markdown requires a base path (for now)
This commit is contained in:
parent
46f5325c15
commit
ce74333348
@ -135,7 +135,7 @@ func parse(c middleware.Controller) ([]MarkdownConfig, error) {
|
||||
}
|
||||
|
||||
// Get the path scope
|
||||
if !c.NextArg() {
|
||||
if !c.NextArg() || c.Val() == "{" {
|
||||
return mdconfigs, c.ArgErr()
|
||||
}
|
||||
md.PathScope = c.Val()
|
||||
|
Loading…
x
Reference in New Issue
Block a user