mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 10:16:37 +00:00
Update upload.go
This commit is contained in:
parent
ddb89bdc66
commit
b61c08ac13
1 changed files with 2 additions and 4 deletions
|
|
@ -229,10 +229,8 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
||||
if len(r.Header.Get("Content-Length")) > 0 {
|
||||
i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
|
||||
|
||||
if i > Config.maxSize {
|
||||
upReq.size = i
|
||||
if strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) > Config.maxSize {
|
||||
upReq.size = strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
|
||||
}
|
||||
}
|
||||
if r.Header.Get("Linx-Randomize") == "yes" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue