Commit f708ce02 authored by JessonChan's avatar JessonChan

当有设置的压缩类型时,丢弃默认类型(css,js)

parent dc38b324
......@@ -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 == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment