From 4606a4988699bdf8fa70bf87019b66f21cbb7789 Mon Sep 17 00:00:00 2001 From: Azareal Date: Fri, 31 Jul 2020 15:58:17 +1000 Subject: [PATCH] add tgz file extension --- common/common.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/common.go b/common/common.go index 104b35cd..6a0b501c 100644 --- a/common/common.go +++ b/common/common.go @@ -11,6 +11,7 @@ import ( "io" "log" "os" + //"sync" "sync/atomic" "time" @@ -48,6 +49,8 @@ var IsDBDown int32 = 0 // 0 = false, 1 = true. this is value w // ErrNoRows is an alias of sql.ErrNoRows, just in case we end up with non-database/sql datastores var ErrNoRows = sql.ErrNoRows +//var StrSlicePool sync.Pool + // ? - Make this more customisable? /*var ExternalSites = map[string]string{ "YT": "https://www.youtube.com/", @@ -75,7 +78,7 @@ var AllowedFileExts = StringList{ "otf", "woff2", "woff", "ttf", "eot", // fonts - "bz2", "zip", "zipx", "gz", "7z", "tar", "cab", "rar", "kgb", "pea", "xz", "zz", // archives + "bz2", "zip", "zipx", "gz", "7z", "tar", "cab", "rar", "kgb", "pea", "xz", "zz", "tgz", // archives //"docx", "pdf", // documents } @@ -95,7 +98,7 @@ var WebAudioFileExts = StringList{ "wav", "mp3", "oga", } var ArchiveFileExts = StringList{ - "bz2", "zip", "zipx", "gz", "7z", "tar", "cab", "rar", "kgb", "pea", "xz", "zz", + "bz2", "zip", "zipx", "gz", "7z", "tar", "cab", "rar", "kgb", "pea", "xz", "zz", "tgz", } var ExecutableFileExts = StringList{ "exe", "jar", "phar", "shar", "iso", "apk", "deb",