mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
WebDAV: allow to define custom MIME type mappings
Fixes #1154 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -22,7 +22,10 @@ type mimeCache struct {
|
||||
mimeTypes map[string]string
|
||||
}
|
||||
|
||||
var mimeTypeCache mimeCache
|
||||
var (
|
||||
mimeTypeCache mimeCache
|
||||
customMimeTypeMapping map[string]string
|
||||
)
|
||||
|
||||
func (c *mimeCache) addMimeToCache(key, value string) {
|
||||
c.Lock()
|
||||
|
||||
Reference in New Issue
Block a user