mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 14:01:28 +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 != "" {
|
if sgz := AppConfig.String("StaticExtensionsToGzip"); sgz != "" {
|
||||||
extensions := strings.Split(sgz, ",")
|
extensions := strings.Split(sgz, ",")
|
||||||
|
StaticExtensionsToGzip = []string{}
|
||||||
for _, ext := range extensions {
|
for _, ext := range extensions {
|
||||||
ext = strings.TrimSpace(ext)
|
ext = strings.TrimSpace(ext)
|
||||||
if ext == "" {
|
if ext == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user