Browse Source

move back the section

pull/434/head
Chris Lu 8 years ago
parent
commit
7b6837cbc2
  1. 4
      weed/storage/needle.go

4
weed/storage/needle.go

@ -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…
Cancel
Save