mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-23 02:29:59 +08:00
markdown: fix race in accessing map
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
@ -153,7 +153,9 @@ func (md Markdown) generatePage(c *Config, requestPath string, content []byte) e
|
||||
return err
|
||||
}
|
||||
|
||||
c.Lock()
|
||||
c.StaticFiles[requestPath] = filePath
|
||||
c.Unlock()
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user