mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 02:14:33 +00:00
Update upload.go
This commit is contained in:
parent
84b9b36d35
commit
0b39245c09
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
|||
if r.Header.Get("Linx-Randomize") == "yes" {
|
||||
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 {
|
||||
upReq.contentSize = 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue