summaryrefslogtreecommitdiff
path: root/service/http
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-01-10 11:53:16 +0300
committerWolfy-J <[email protected]>2019-01-10 11:53:16 +0300
commit35bd2c861daf7a3895dc9d99642b53f2107bf5bf (patch)
treea47f3ef674824e0138783d443bb6c0afb483314e /service/http
parentd1532db3043a1038f287fe31d1f2537d37d4d3a9 (diff)
always serve files
Diffstat (limited to 'service/http')
-rw-r--r--service/http/uploads_config.go2
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))