move back the section

This commit is contained in:
Chris Lu 2017-01-08 10:35:47 -08:00
parent b14332df96
commit 7b6837cbc2

View file

@ -120,6 +120,9 @@ func ParseUpload(r *http.Request) (
}
isChunkedFile, _ = strconv.ParseBool(r.FormValue("cm"))
if !isChunkedFile {
dotIndex := strings.LastIndex(fileName, ".")
ext, mtype := "", ""
if dotIndex > 0 {
@ -132,7 +135,6 @@ func ParseUpload(r *http.Request) (
mtype = contentType
}
if !isChunkedFile {
if part.Header.Get("Content-Encoding") == "gzip" {
isGzipped = true
} else if operation.IsGzippable(ext, mtype) {