Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 20:45:13 -05:00
parent fb1ec8a64c
commit 486e4ed836
1 changed files with 2 additions and 2 deletions

View File

@ -229,8 +229,8 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) {
func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
if len(r.Header.Get("Content-Length")) > 0 { if len(r.Header.Get("Content-Length")) > 0 {
if (strconf.Atoi(r.Header.Get("Content-Length")) > Config.maxSize { if strconv.Atoi(r.Header.Get("Content-Length")) > Config.maxSize {
upReq.size = r.Header.Get("Content-Length") upReq.size = strconv.Atoi(r.Header.Get("Content-Length"))
} }
} }
if r.Header.Get("Linx-Randomize") == "yes" { if r.Header.Get("Linx-Randomize") == "yes" {