feat: add a config option to bypass mime content type sniffing (#60)

This commit is contained in:
Justyn
2021-01-14 14:47:33 +00:00
committed by GitHub
parent 8cd6d0a585
commit 099479a894
3 changed files with 99 additions and 8 deletions
+4 -3
View File
@@ -20,9 +20,10 @@ type CorsCfg struct {
// Config is the configuration of a WebDAV instance.
type Config struct {
*User
Auth bool
Cors CorsCfg
Users map[string]*User
Auth bool
NoSniff bool
Cors CorsCfg
Users map[string]*User
}
// ServeHTTP determines if the request is for this plugin, and if all prerequisites are met.