Update upload.go
This commit is contained in:
parent
84b9b36d35
commit
0b39245c09
|
@ -237,7 +237,7 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
||||||
if r.Header.Get("Linx-Randomize") == "yes" {
|
if r.Header.Get("Linx-Randomize") == "yes" {
|
||||||
upReq.randomBarename = true
|
upReq.randomBarename = true
|
||||||
}
|
}
|
||||||
upReq.contentSize, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
|
upReq.contentSize, err = strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
upReq.contentSize = 0
|
upReq.contentSize = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue