diff options
author | Wolfy-J <[email protected]> | 2019-01-10 11:53:16 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-10 11:53:16 +0300 |
commit | 35bd2c861daf7a3895dc9d99642b53f2107bf5bf (patch) | |
tree | a47f3ef674824e0138783d443bb6c0afb483314e /service/http | |
parent | d1532db3043a1038f287fe31d1f2537d37d4d3a9 (diff) |
always serve files
Diffstat (limited to 'service/http')
-rw-r--r-- | service/http/uploads_config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/uploads_config.go b/service/http/uploads_config.go index 3f655064..9f62d779 100644 --- a/service/http/uploads_config.go +++ b/service/http/uploads_config.go @@ -31,7 +31,7 @@ func (cfg *UploadsConfig) TmpDir() string { return os.TempDir() } -// Forbids must return true if file extension is not allowed for the upload. +// AlwaysForbid must return true if file extension is not allowed for the upload. func (cfg *UploadsConfig) Forbids(filename string) bool { ext := strings.ToLower(path.Ext(filename)) |