mirror of
https://github.com/astaxie/beego.git
synced 2025-06-10 16:00:39 +00:00
当有设置的压缩类型时,丢弃默认类型(css,js)
This commit is contained in:
@ -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 == "" {
|
||||
|
Reference in New Issue
Block a user