mirror of
https://github.com/astaxie/beego.git
synced 2025-05-24 16:13:08 +00:00
当有设置的压缩类型时,丢弃默认类型(css,js)
This commit is contained in:
parent
dc38b324e0
commit
f708ce0299
@ -523,6 +523,7 @@ func ParseConfig() (err error) {
|
||||
|
||||
if sgz := AppConfig.String("StaticExtensionsToGzip"); sgz != "" {
|
||||
extensions := strings.Split(sgz, ",")
|
||||
StaticExtensionsToGzip = []string{}
|
||||
for _, ext := range extensions {
|
||||
ext = strings.TrimSpace(ext)
|
||||
if ext == "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user