mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
move back the section
This commit is contained in:
parent
b14332df96
commit
7b6837cbc2
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue